More header parsing
[jelmer/ptabtools.git] / Makefile
1 PROGS = ptb2ly ptbsplit ptbtest
2
3 PTB2LY_OBJS = ptb2ly.o ptb.o sections.o
4 PTBSPLIT_OBJS = ptb.o ptbsplit.o
5 PTBTEST_OBJS = ptb.o ptbtest.o sections.o
6
7
8 all: $(PROGS)
9
10 %.o: %.c
11         $(CC) -c $< `pkg-config --cflags glib-2.0`
12
13
14 ptbsplit: $(PTBSPLIT_OBJS)
15         $(CC) -o $@ $(PTBSPLIT_OBJS) `pkg-config --libs glib-2.0`
16
17 ptb2ly: $(PTB2LY_OBJS)
18         $(CC) -o $@ $(PTB2LY_OBJS) `pkg-config --libs glib-2.0`
19
20 ptbtest: $(PTBTEST_OBJS)
21         $(CC) -o $@ $(PTBTEST_OBJS) `pkg-config --libs glib-2.0`
22
23 clean: 
24         rm -f *.o core $(PROGS)