makefile.msc.in 823 Bytes
Newer Older
1 2 3 4 5
## Makefile for building the gthread dll with Microsoft C
## Use: nmake -f makefile.msc install

TOP = ..\..

Tor Lillqvist's avatar
Tor Lillqvist committed
6
!INCLUDE ..\build\win32\make.msc
7 8 9

################################################################

10
INCLUDES = -FImsvc_recommended_pragmas.h -I .. -I . -I ..\glib
Hans Breuer's avatar
Hans Breuer committed
11
DEFINES = -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"GThread\"
12
all : \
13
	libgthread-2.0-@LT_CURRENT_MINUS_AGE@.dll
14 15 16 17

gthread_OBJECTS = \
	gthread-impl.obj

Hans Breuer's avatar
Hans Breuer committed
18 19
gthread-impl.obj : gthread-impl.c gthread-win32.c
	$(CC) -c $(CFLAGS) gthread-impl.c
20

21 22 23 24 25
gthread.res : gthread.rc
	rc -DBUILDNUMBER=0 -r -fo gthread.res gthread.rc

libgthread-2.0-@LT_CURRENT_MINUS_AGE@.dll : $(gthread_OBJECTS) gthread.def gthread.res
	$(CC) $(CFLAGS) -LD -Fe$@ $(gthread_OBJECTS) gthread.res \
26
	..\glib\glib-2.0.lib $(DEPCLIBS) user32.lib $(LDFLAGS) /implib:gthread-2.0.lib /def:gthread.def