From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hensema To: 'Pthreads-win32' Subject: Makefile for Microsoft nmake Date: Mon, 08 Nov 1999 04:08:00 -0000 Message-id: X-SW-Source: 1999/msg00121.html Hi, I've created this makefile for use with nmake. It can be used as a replacement for buildlib.bat. I've changed the target from an ordinary dll (/LD) to a debugging dll (/LDd). The variables $DLLDEST and $LIBDEST hold the destination directories for the dll and the lib, respectively. You might want to rename the original Makefile to GNUmakefile, since this is the first Makefile gmake lookes for. nmake only looks for Makefile. OBJ=attr.obj \ cancel.obj \ cleanup.obj \ condvar.obj \ create.obj \ dll.obj \ errno.obj \ exit.obj \ fork.obj \ global.obj \ misc.obj \ mutex.obj \ private.obj \ rwlock.obj \ sched.obj \ semaphore.obj \ signal.obj \ sync.obj \ tsd.obj DLLDEST=e:\dll LIBDEST=e:\lib all: pthread.dll clean: del pthread.dll \ pthread.lib \ *.obj install: all copy pthread.dll $(DLLDEST) copy pthread.lib $(LIBDEST) pthread.dll: $(OBJ) pthread.def cl /LDd /Zi *.obj /Fepthread.dll \ pthread.def \ /link /nodefaultlib:libcmt \ msvcrt.lib .c.obj:: cl /W3 /MT /nologo /Yd /Zi /I. \ /D_WIN32_WINNT=0x400 \ /DSTDCALL=_stdcall \ -c $< $(OBJ): -- Erik Hensema Work: erik.hensema@group2000.nl Home: erik@hensema.xs4all.nl