Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OBJS = integer.o sllnode.c dllnode.c sll.o dll.o stack.o queue.o test-all.o
- OPTS = -Wall -Wextra -g -std=c99
- all: test-all
- test-all: $(OBJS)
- gcc $(OPTS) -o test-all $(OBJS)
- integer.o: integer.c integer.h
- gcc $(OPTS) -c integer.c
- sll.o: sllnode.c sll.c sll.h
- gcc $(OPTS) -c sllnode.c sll.c
- dll.o: dllnode.c dll.c dll.h
- gcc $(OPTS) -c dllnode.c dll.c
- stack.o: dll.o stack.c stack.h
- gcc $(OPTS) -c stack.c
- queue.o: sll.o queue.c queue.h
- gcc $(OPTS) -c queue.c
- test-all.o: test-all.c integer.h sll.h dll.h stack.h queue.h
- gcc $(OPTS) -c test-all.c
- clean:
- rm -f *.o; rm -f test-all
- test: test-all
- ./test-all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement