2000-10-06 23:32:59 +02:00
|
|
|
## Makefile for building the gthread dll with Microsoft C
|
|
|
|
## Use: nmake -f makefile.msc install
|
|
|
|
|
|
|
|
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
|
|
|
|
|
|
|
TOP = ..\..
|
|
|
|
|
2001-05-24 18:36:47 +02:00
|
|
|
!INCLUDE $(TOP)\build\win32\make.msc
|
2000-10-06 23:32:59 +02:00
|
|
|
|
|
|
|
# Possibly override GLib version in build\win32\module.defs
|
|
|
|
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Nothing much configurable below
|
|
|
|
|
|
|
|
INCLUDES = -I .. -I .
|
2000-12-29 20:25:40 +01:00
|
|
|
DEFINES = -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"GThread\" -DG_ENABLE_DEBUG
|
2001-05-24 18:36:47 +02:00
|
|
|
# DEPCFLAGS = $(PTHREAD_CFLAGS)
|
|
|
|
# DEPCLIBS = $(PTHREAD_LIBS)
|
2000-10-06 23:32:59 +02:00
|
|
|
all : \
|
|
|
|
gthread-$(GLIB_VER).dll
|
|
|
|
|
|
|
|
gthread_OBJECTS = \
|
|
|
|
gthread-impl.obj
|
|
|
|
|
|
|
|
makefile.msc: makefile.msc.in
|
|
|
|
$(SED) -e s,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@, \
|
|
|
|
-e s,@GLIB[_]MINOR_VERSION@,@GLIB_MINOR_VERSION@, <makefile.msc.in >$@
|
|
|
|
|
2001-05-24 18:36:47 +02:00
|
|
|
gthread-impl.obj : gthread-impl.c gthread-win32.c
|
|
|
|
$(CC) -c $(CFLAGS) gthread-impl.c
|
|
|
|
|
2000-10-06 23:32:59 +02:00
|
|
|
gthread-$(GLIB_VER).dll : $(gthread_OBJECTS) gthread.def
|
2001-05-24 18:36:47 +02:00
|
|
|
$(CC) $(CFLAGS) -LD -Fegthread-$(GLIB_VER).dll $(gthread_OBJECTS) ..\glib-$(GLIB_VER).lib $(DEPCLIBS) $(LDFLAGS) /def:gthread.def
|