Made changes to get tomd working as a init program.
[tlb/tomd.git] / Makefile
index 325d894..3affb96 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,11 @@
 # TODO > Use GNU automake tools
 
-tomd:
-       gcc -o tomd ./src/tomd/main.c
+all:tomd tomc
+
+tomd:./src/tomd/main.c ./src/common/guile_helpers.c
+       gcc -static -o tomd \
+       -I/usr/local/include/guile/2.2 \
+       ./src/tomd/main.c ./src/common/guile_helpers.c
+
+tomc:./src/tomc/main.c ./src/common/socketio.c
+       gcc -o tomc ./src/tomc/main.c ./src/common/socketio.c -static