diff options
author | Samuli Seppänen <samuli@openvpn.net> | 2011-02-11 15:15:51 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2011-02-27 00:55:22 +0100 |
commit | da51a175ed364ae8d41950858d8ebb2a25b742ee (patch) | |
tree | 89420450c50cd2ef84389899f6f927dedb9befc9 /service-win32/msvc.mak | |
parent | Added ENABLE_PASSWORD_SAVE to config-win32.h (diff) | |
download | openvpn-da51a175ed364ae8d41950858d8ebb2a25b742ee.tar.xz |
Added a nmake makefile for openvpnserv.exe building
This change adds a nmake makefile (service-win32/msvc.mak) which allows building
openvpnserv.exe using the new Python-based buildsystem.
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
Acked-by: James Yonan <james@openvpn.net>
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to '')
-rw-r--r-- | service-win32/msvc.mak | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/service-win32/msvc.mak b/service-win32/msvc.mak new file mode 100644 index 0000000..ba4bab7 --- /dev/null +++ b/service-win32/msvc.mak @@ -0,0 +1,30 @@ +# This makefile builds the OpenVPN service wrapper for Windows in the +# Visual Studio 2008 environment. + +# Some of these libs may not be needed +LIBS = ws2_32.lib crypt32.lib iphlpapi.lib winmm.lib user32.lib gdi32.lib advapi32.lib wininet.lib +EXE = openvpnserv.exe + +CPP=cl.exe +CPP_ARG_COMMON=/nologo /W3 -DWIN32 -DWIN32_LEAN_AND_MEAN -D_CONSOLE -D_MBCS -D_CRT_SECURE_NO_DEPRECATE /FD /c -I".." +CPP_PROJ=$(CPP_ARG_COMMON) /O2 /MD -DNDEBUG + +LINK32=link.exe +LINK32_FLAGS=/nologo /subsystem:console /incremental:no + +OBJS = \ + openvpnserv.obj \ + service.obj + +openvpnserv : $(OBJS) + $(LINK32) @<< + $(LINK32_FLAGS) "/out:$(EXE)" $(LIBS) $(OBJS) +<< + +clean : + del /Q $(OBJS) $(EXE) *.idb *.pdb + +.c.obj:: + $(CPP) @<< + $(CPP_PROJ) $< +<< |