]>
Commit | Line | Data |
---|---|---|
1 | CC = gcc | |
2 | CFLAGS = -Wall -g | |
3 | DEPS = queue.h stack.h | |
4 | ||
5 | %.o: %.c $(DEPS) | |
6 | $(CC) $< $(CFLAGS) -c -o $@ | |
7 | ||
8 | demo: demo.o queue.o stack.o | |
9 | $(CC) $(CFLAGS) -o demo demo.o queue.o stack.o | |
10 | ||
11 | clean: | |
12 | rm -rf *.dSYM *.so *.a *.o demo | |
13 |