Advertisement
Guest User

Untitled

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