Advertisement
bmbaker001

Untitled

Jan 21st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. OBJS = sll.o dll.o queue.o stack.o integer.o test-integer.o
  2. OOPTS = -Wall -Wextra -g -c
  3. LOPTS = -Wall -Wextra -g
  4.  
  5. all : test-integer
  6.  
  7. test-integer : $(OBJS)
  8. gcc $(LOPTS) -o test-integer $(OBJS)
  9.  
  10. sll.o : sll.c sll.h
  11. gcc $(OOPTS) sll.c
  12.  
  13. dll.o : dll.c dll.h
  14. gcc $(OOPTS) dll.c
  15.  
  16. queue.o : queue.c queue.h sll.h
  17. gcc $(OOPTS) queue.c
  18.  
  19. stack.o : stack.c stack.h dll.h
  20. gcc $(OOPTS) stack.c
  21.  
  22. integer.o : integer.c integer.h
  23. gcc $(OOPTS) integer.c
  24.  
  25. test-integer.o : test-integer.c integer.h sll.h dll.h queue.h stack.h
  26. gcc $(OOPTS) test-integer.c
  27.  
  28. clean:
  29. rm -f $(OBJS) test-integer
  30.  
  31. test:
  32. ./test-integer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement