Advertisement
bugaevc

makefile for sorting task 7

May 10th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.31 KB | None | 0 0
  1. no_abs: asm.o main.c
  2.     gcc -c -m32 -std=c11 main.c -o main.o
  3.     gcc -m32 main.o asm.o -o runme
  4. use_abs: asm.o main.c
  5.     gcc -c -m32 -std=c11 main.c -o main.o -DUSE_ABS
  6.     gcc -m32 main.o asm.o -o runme
  7. asm.o: asm.asm
  8.     nasm -f elf32 asm.asm -o asm.o
  9.  
  10. .PHONY: clean use_abs no_abs
  11. clean:
  12.     rm -f main.o asm.o runme
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement