summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorrpj <rpj>2005-04-01 09:00:27 +0000
committerrpj <rpj>2005-04-01 09:00:27 +0000
commitf7d9daf2243a111623aff7856b24632ef49cefcc (patch)
tree8bc4fabc31812fb64d2d4ac558f07908757b01a6 /Makefile
parentf6f9976af7a520dd1aeced4f104f4d4711f28e23 (diff)
''
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3827782..22ed80d 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@
# DLL_VER:
# See pthread.h and README - This number is computed as 'current - age'
-DLL_VER = 2
+DLL_VER = 1
DEVROOT = c:\pthreads
@@ -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 $<