From 4b8ca0cba45b88803f99b9d91d2a8c7ec7f9f46d Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 1 Apr 2005 09:13:32 +0000 Subject: '' --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3827782..cc30244 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ LIBDEST = $(DEVROOT)\DLL DLLS = pthreadVCE$(DLL_VER).dll pthreadVSE$(DLL_VER).dll pthreadVC$(DLL_VER).dll INLINED_STAMPS = pthreadVCE$(DLL_VER).stamp pthreadVSE$(DLL_VER).stamp pthreadVC$(DLL_VER).stamp +STATIC_STAMPS = pthreadVCE$(DLL_VER).static pthreadVSE$(DLL_VER).static pthreadVC$(DLL_VER).static OPTIM = /O2 /Ob2 #OPTIM = @@ -368,6 +369,7 @@ help: @ echo nmake clean VCE-inlined (to build the MSVC inlined dll with C++ exception handling) @ echo nmake clean VSE-inlined (to build the MSVC inlined dll with structured exception handling) @ echo nmake clean VC-inlined (to build the MSVC inlined dll with C cleanup code) + @ echo nmake clean VC-static (to build the MSVC static lib with C cleanup code) all: @ nmake clean VCE-inlined @@ -396,6 +398,9 @@ VSE-inlined: VC-inlined: @ nmake /nologo EHFLAGS="$(OPTIM) $(VCFLAGS) /DPTW32_BUILD_INLINED" CLEANUP=__CLEANUP_C pthreadVC$(DLL_VER).stamp +VC-static: + @ nmake /nologo EHFLAGS="$(OPTIM) $(VCFLAGS) /DPTW32_BUILD_INLINED /DPTW32_STATIC_LIB" CLEANUP=__CLEANUP_C pthreadVC$(DLL_VER).static + realclean: clean if exist *.dll del *.dll if exist *.lib del *.lib @@ -426,6 +431,10 @@ $(INLINED_STAMPS): $(DLL_INLINED_OBJS) /link /nodefaultlib:libcmt /implib:$*.lib \ msvcrt.lib wsock32.lib /out:$*.dll +$(STATIC_STAMPS): $(DLL_INLINED_OBJS) + if exist $*.lib del $*.lib + lib $(DLL_INLINED_OBJS) /out:$*.lib + .c.obj: cl $(EHFLAGS) /D$(CLEANUP) -c $< -- cgit v1.2.3