From f70a8c0019ed96ba3b10da20ffc0a34b7ee9db73 Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Tue, 16 Feb 2016 01:03:15 +0300 Subject: [PATCH] Makefile for Windows llvm build --- Makefile.llvm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Makefile.llvm diff --git a/Makefile.llvm b/Makefile.llvm new file mode 100644 index 0000000..557a6a8 --- /dev/null +++ b/Makefile.llvm @@ -0,0 +1,34 @@ +# +# 3 proxy Makefile for GCC/windows +# +# You can try to remove -DWITH_STD_MALLOC to CFLAGS to use optimized malloc +# libraries +# +# remove -DNOODBC from CFLAGS and add -lodbc to LDFLAGS to compile with ODBC +# library support + + +BUILDDIR = ../bin/ +CC = clang +CFLAGS = -O2 -c -pthread -static -DWITH_STD_MALLOC -DNOIPV6 +COUT = -o +LN = clang +LDFLAGS = -O2 -static -s +DLFLAGS = -shared +DLSUFFICS = .dll +LIBS = -lws2_32 -lodbc32 -ladvapi32 +LNOUT = -o +EXESUFFICS = .exe +OBJSUFFICS = .o +DEFINEOPTION = -D +COMPFILES = *.tmp +REMOVECOMMAND = rm -f +TYPECOMMAND = cat +COMPATLIBS = +MAKEFILE = Makefile.win +PLUGINS = utf8tocp1251 WindowsAuthentication TrafficPlugin StringsPlugin PCREPlugin + +include Makefile.inc + +allplugins: + for /D %%i in ($(PLUGINS)) do (copy Makefile plugins\%%i && copy Makefile.var plugins\%%i && cd plugins\%%i && nmake && del *.o &&cd ..\..)