]> git.cworth.org Git - loa/blob - Makefile
Fix compilation by putting dependent libraries at the end
[loa] / Makefile
1 ALL=loa
2 MYCFLAGS=-Wall `pkg-config --cflags loudmouth-1.0 gtk+-2.0`
3 MYLDFLAGS=`pkg-config --libs loudmouth-1.0 gtk+-2.0`
4
5 all: $(ALL)
6
7 %.o: %.c
8         $(CC) $(CFLAGS) $(MYCFLAGS) -c -o $@ -c $<
9
10 loa: loa.o loa-board.o
11         $(CC) -o $@ $^ $(LDLAGS) $(MYLDFLAGS)
12
13 Makefile.dep: *.c
14         $(CC) -M $(CPPFLAGS) $(MYCFLAGS) $^ > $@
15 -include Makefile.dep
16
17 .PHONY: clean
18 clean:
19         rm -f $(ALL) *.o Makefile.dep