]> git.cworth.org Git - loudgame/blobdiff - Makefile
Document the new say and whisper commands
[loudgame] / Makefile
index de7e1d30473e6ec8aa6011b417fa023f97f64508..14f17ef267683c0bd348f1b507c5660c2fabf39d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,19 @@
-ALL=lg-echo
+ALL=lg-echo lg-test lg-set lg-loa
 MYCFLAGS=-Wall `pkg-config --cflags loudmouth-1.0`
 MYLDFLAGS=`pkg-config --libs loudmouth-1.0`
 
 all: $(ALL)
 
-%: %.c
-       $(CC) $(CFLAGS) $(MYCFLAGS) $(LDFLAGS) $(MYLDFLAGS) -o $@ $^
+%.o: %.c
+       $(CC) $(CFLAGS) $(MYCFLAGS) -c -o $@ -c $<
 
+%: %.o loudgame.o
+       $(CC) $(LDLAGS) $(MYLDFLAGS) -o $@ $^
+
+Makefile.dep: *.c
+       $(CC) -M $(CPPFLAGS) $(MYCFLAGS) $^ > $@
+-include Makefile.dep
+
+.PHONY: clean
 clean:
-       rm -f $(ALL) *.o
+       rm -f $(ALL) *.o Makefile.dep