Makefile.msvc64 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # 3 proxy Makefile for Microsoft Visual C compiler (for both make and nmake)
  3. #
  4. # You can try to remove -DWITH_STD_MALLOC to CFLAGS to use optimized malloc
  5. # libraries
  6. #
  7. # Add /DSAFESQL to CFLAGS if you are using poorely written/tested ODBC driver
  8. BUILDDIR = ../bin64/
  9. CC = cl
  10. CFLAGS = /nologo /MT /W3 /Ox /EHs- /GS /GA /GF /D "MSVC" /D "WITH_STD_MALLOC" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "_WIN32" /Fp"proxy.pch" /FD /c
  11. COUT = /Fo
  12. LN = link
  13. LDFLAGS = /nologo /subsystem:console /incremental:no /machine:x64
  14. DLFLAGS = /DLL
  15. DLSUFFICS = .dll
  16. LIBS = ws2_32.lib advapi32.lib odbc32.lib user32.lib kernel32.lib Gdi32.lib libeay32MT.lib ssleay32MT.lib
  17. LIBSOLD = libeay32MT.lib ssleay32MT.lib
  18. LIBEXT = .lib
  19. LNOUT = /out:
  20. EXESUFFICS = .exe
  21. OBJSUFFICS = .obj
  22. DEFINEOPTION = /D
  23. COMPFILES = *.pch *.idb
  24. REMOVECOMMAND = del 2>NUL >NUL
  25. TYPECOMMAND = type
  26. COMPATLIBS =
  27. MAKEFILE = Makefile.msvc64
  28. PLUGINS = utf8tocp1251 WindowsAuthentication TrafficPlugin StringsPlugin PCREPlugin FilePlugin SSLPlugin
  29. VERFILE = $(VERFILE)
  30. #../3proxy.res:
  31. # rc /fo../3proxy.res ../3proxy.rc
  32. #3proxyres.obj: ../3proxy.res
  33. # cvtres /out:3proxyres.obj /MACHINE:X64 ../3proxy.res
  34. include Makefile.inc
  35. ../3proxy.res:
  36. rc /fo../3proxy.res ../3proxy.rc
  37. 3proxyres.obj: ../3proxy.res
  38. cvtres /out:3proxyres.obj /machine:x64 ../3proxy.res
  39. allplugins:
  40. for /D %%i in ($(PLUGINS)) do (copy Makefile plugins\%%i && copy Makefile.var plugins\%%i && cd plugins\%%i && nmake && del *.obj *.idb &&cd ..\..)