summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2023-05-03 22:57:53 -0400
committerTest_User <hax@andrewyu.org>2023-05-03 22:57:53 -0400
commite4b5445b3ca844e568a84abbf931a026a6ca6226 (patch)
tree9d9d615406c5a91036ebcd5b23bd8af30d3e8f3d /Makefile
parentec8b1682e86535333c34966f6aafee349e609641 (diff)
downloadcoupserv-e4b5445b3ca844e568a84abbf931a026a6ca6226.tar.gz
coupserv-e4b5445b3ca844e568a84abbf931a026a6ca6226.zip
C HaxServ
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..34dcb75
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,33 @@
+#INCLUDEFLAGS =
+
+CFLAGS += $(INCLUDEFLAGS) -D_REENTRANT -ggdb3
+
+LDFLAGS = -lssl -lcrypto
+
+DEPS = $(shell $(CC) $(INCLUDEFLAGS) -MM -MT $(1).o $(1).c | sed -z 's/\\\n //g')
+
+.PHONY: all clean cleanall release
+all: haxserv
+
+haxserv: main.o network.o commands.o table.o config.o tls.o utils.o
+ $(CC) $^ -o $@ $(LDFLAGS)
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+$(call DEPS,main)
+
+$(call DEPS,network)
+
+$(call DEPS,commands)
+
+$(call DEPS,table)
+
+$(call DEPS,config)
+
+$(call DEPS,tls)
+
+$(call DEPS,utils)
+
+clean:
+ $(RM) haxserv *.o