added a char stack implementation for later use
[smdp.git] / Makefile
1 CFLAGS=-g -Wall
2
3 tmp: tmp.c cstring.o cstack.o markdown.o parser.o viewer.o
4         cc $(CFLAGS) -o tmp tmp.c cstring.o cstack.o markdown.o parser.o viewer.o -lncurses
5
6 viewer.o: viewer.c
7         cc $(CFLAGS) -c viewer.c
8
9 parser.o: parser.c
10         cc $(CFLAGS) -c parser.c
11
12 markdown.o: markdown.c
13         cc $(CFLAGS) -c markdown.c
14
15 cstack.o: cstack.c
16         cc $(CFLAGS) -c cstack.c
17
18 cstring.o: cstring.c
19         cc $(CFLAGS) -c cstring.c
20
21 all: tmp
22
23 clean:
24         rm -f tmp *.o
25
26 .PHONY: test
27
28 test:
29         $(MAKE) -C test
30