Initial import
[umurmur.git] / src / Makefile
diff --git a/src/Makefile b/src/Makefile
new file mode 100644 (file)
index 0000000..e66f475
--- /dev/null
@@ -0,0 +1,22 @@
+# build helloworld executable when user executes "make" 
+
+SRCS:=client.c main.c messages.c pds.c server.c ssl.c log.c conf.c crypt.c timer.c messagehandler.c channel.c
+OBJS:=$(patsubst %.c, %.o, $(SRCS))
+CFLAGS:=$(CFLAGS) -Wall -Os -g
+LDFLAGS:=$(LDFLAGS) -lcrypto -lssl -lconfig
+
+umurmurd:$(OBJS) depend.mak
+       $(CC) $(LDFLAGS) $(OBJS) -o umurmurd
+
+# remove object files and executable when user executes "make clean"
+clean:
+       rm *.o umurmurd 
+
+all: umurmur
+
+$(OBJS): Makefile
+
+depend.mak:
+       $(CC) -M $(SRCS) > depend.mak
+
+include depend.mak
\ No newline at end of file