3proxy/Makefile.msvc

44 lines
1.5 KiB
Makefile
Raw Normal View History

2014-04-08 17:03:21 +08:00
#
# 3 proxy Makefile for Microsoft Visual C compiler (for both make and nmake)
#
# You can try to remove -DWITH_STD_MALLOC to CFLAGS to use optimized malloc
# libraries
#
# Add /DSAFESQL to CFLAGS if you are using poorely written/tested ODBC driver
BUILDDIR = ../bin/
CC = cl
2018-04-21 00:32:49 +08:00
CFLAGS = /nologo /MT /W3 /Ox /GS /EHs- /GA /GF /D "MSVC" /D "WITH_STD_MALLOC" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "_WIN32" /D "PRINTF_INT64_MODIFIER=\"I64\"" /Fp"proxy.pch" /FD /c
2014-04-08 17:03:21 +08:00
COUT = /Fo
LN = link
2016-01-27 22:30:54 +08:00
LDFLAGS = /nologo /subsystem:console /incremental:no /machine:I386
2014-04-08 17:03:21 +08:00
DLFLAGS = /DLL
DLSUFFICS = .dll
LIBS = ws2_32.lib advapi32.lib odbc32.lib user32.lib kernel32.lib Gdi32.lib libeay32MT.lib ssleay32MT.lib
LIBSOLD = libeay32MT.lib ssleay32MT.lib
LIBSPREFIX =
LIBSSUFFIX = .lib
2014-04-08 17:03:21 +08:00
LIBEXT = .lib
LNOUT = /out:
EXESUFFICS = .exe
OBJSUFFICS = .obj
DEFINEOPTION = /D
COMPFILES = *.pch *.idb
REMOVECOMMAND = del 2>NUL >NUL
TYPECOMMAND = type
COMPATLIBS =
MAKEFILE = Makefile.msvc
2015-09-04 05:22:06 +08:00
PLUGINS = utf8tocp1251 WindowsAuthentication TrafficPlugin StringsPlugin PCREPlugin FilePlugin SSLPlugin
2014-11-04 03:17:22 +08:00
VERFILE = $(VERFILE)
2014-04-08 17:03:21 +08:00
2015-02-17 21:05:55 +08:00
include Makefile.inc
2014-04-08 17:03:21 +08:00
2015-02-17 21:05:55 +08:00
../3proxy.res:
rc /fo../3proxy.res ../3proxy.rc
2014-04-13 23:21:18 +08:00
2015-02-17 21:05:55 +08:00
3proxyres.obj: ../3proxy.res
cvtres /out:3proxyres.obj /MACHINE:I386 ../3proxy.res
2014-04-13 23:21:18 +08:00
2014-04-08 17:03:21 +08:00
allplugins:
for /D %%i in ($(PLUGINS)) do (copy Makefile plugins\%%i && copy Makefile.var plugins\%%i && cd plugins\%%i && nmake && del *.obj *.idb &&cd ..\..)