Advertisement
user366312

makefile

Apr 6th, 2019
788
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.26 KB | None | 0 0
  1. CC = g++
  2. ASMBIN = nasm
  3.  
  4. all : asm cc link
  5. asm :
  6.     $(ASMBIN) -o func.o -f elf -g -l func.lst func.asm
  7. cc :
  8.     $(CC) -m32 -c -g -O0 main.cpp &> errors.txt
  9. link :
  10.     $(CC) -m32 -g -o test main.o func.o
  11. clean :
  12.     rm *.o
  13.     rm test
  14.     rm errors.txt  
  15.     rm func.lst
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement