broke out gnutls business into a helper file in preparation for new projects.
[monkeysphere.git] / Makefile
index a2a3e74a52302b6436b070857980d1c35970e6ef..b8545a99b22d8e743d2c43f64ae1937c2b243ec4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
-monkeysphere: main.c
-       gcc -g -Wall --pedantic -o monkeysphere main.c `libgnutls-config --libs --cflags` -lgnutls-extra
+monkeysphere: main.c gnutls-helpers.o
+       gcc -g -Wall --pedantic -o monkeysphere main.c `libgnutls-config --libs --cflags` -lgnutls-extra gnutls-helpers.o
+
+%.o: %.c
+       gcc -g -Wall --pedantic -o $@ -c $<
 
 clean: 
-       rm -f monkeysphere
+       rm -f monkeysphere *.o
 
 .PHONY: clean