Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CC = gcc
- ASMBIN = nasm
- ifeq ($(OS), Windows_NT)
- FORMAT = win32
- EXTENSION = .exe
- RM = del
- FLAGS = --prefix _
- else
- FORMAT = elf
- EXTENSION =
- RM = rm
- FLAGS =
- endif
- all : asm cc link
- asm :
- $(ASMBIN) -o remove_spaces.o -f $(FORMAT) $(FLAGS) -l remove_spaces.lst remove_spaces.asm
- cc :
- $(CC) -m32 -c -g -O0 remove_spaces_test.c
- link :
- $(CC) -m32 -o rstest$(EXTENSION) remove_spaces_test.o remove_spaces.o
- clean :
- $(RM) *.o
- $(RM) rstest
- $(RM) remove_spaces.lst
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement