Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. all: hw_01
  2.  
  3. hw_01: obj/main.o obj/bmp.o
  4. gcc -Iinclude obj/main.o obj/bmp.o -o hw_01
  5.  
  6. obj/main.o: src/main.c include/bmp.h | obj
  7. gcc -Iinclude -Wall -Werror -c src/main.c -o obj/main.o
  8.  
  9. obj/bmp.o: src/bmp.c include/bmp.h | obj
  10. gcc -Iinclude -Wall -Werror -c src/bmp.c -o obj/bmp.o
  11.  
  12. clean:
  13. rm -rf obj hw_01
  14.  
  15. obj:
  16. mkdir obj
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement