From e4b5445b3ca844e568a84abbf931a026a6ca6226 Mon Sep 17 00:00:00 2001 From: Test_User Date: Wed, 3 May 2023 22:57:53 -0400 Subject: C HaxServ --- Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3