public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
* Makefile for Microsoft nmake
@ 1999-11-08  4:08 Erik Hensema
  0 siblings, 0 replies; only message in thread
From: Erik Hensema @ 1999-11-08  4:08 UTC (permalink / raw)
  To: 'Pthreads-win32'

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-11-08  4:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-08  4:08 Makefile for Microsoft nmake Erik Hensema

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).