2000-10-06 23:32:59 +02:00
|
|
|
## Makefile for building the gmodule dll with Microsoft C
|
|
|
|
## Use: nmake -f makefile.msc install
|
|
|
|
|
|
|
|
TOP = ..\..
|
|
|
|
|
2001-07-20 19:01:30 +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
|
|
|
|
|
2001-07-20 19:01:30 +02:00
|
|
|
INCLUDES = -I .. -I . -I ..\glib
|
|
|
|
DEFINES = -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"GModule\"
|
2000-10-06 23:32:59 +02:00
|
|
|
|
|
|
|
all : \
|
|
|
|
gmoduleconf.h \
|
|
|
|
gmodule-$(GLIB_VER).dll \
|
|
|
|
testgmodule.exe
|
|
|
|
|
|
|
|
gmodule_OBJECTS = \
|
|
|
|
gmodule.obj
|
|
|
|
|
|
|
|
gmoduleconf.h: gmoduleconf.h.win32
|
|
|
|
copy gmoduleconf.h.win32 gmoduleconf.h
|
|
|
|
|
|
|
|
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 >$@
|
|
|
|
|
|
|
|
gmodule-$(GLIB_VER).dll : $(gmodule_OBJECTS) gmodule.def
|
2001-07-20 19:01:30 +02:00
|
|
|
$(CC) $(CFLAGS) -LD -Fegmodule-$(GLIB_VER).dll $(gmodule_OBJECTS) \
|
|
|
|
..\glib\glib-$(GLIB_VER).lib $(LDFLAGS) /def:gmodule.def
|
2000-10-06 23:32:59 +02:00
|
|
|
|
|
|
|
################ test prog
|
|
|
|
|
|
|
|
testgmodule.exe : gmodule-$(GLIB_VER).dll testgmodule.obj libgplugin_a.dll libgplugin_b.dll
|
2001-07-20 19:01:30 +02:00
|
|
|
$(CC) $(CFLAGS) testgmodule.obj gmodule-$(GLIB_VER).lib \
|
|
|
|
..\glib\glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
|
2000-10-06 23:32:59 +02:00
|
|
|
|
|
|
|
libgplugin_a.dll : libgplugin_a.obj
|
2001-07-20 19:01:30 +02:00
|
|
|
$(CC) $(CFLAGS) -LD libgplugin_a.obj gmodule-$(GLIB_VER).lib \
|
|
|
|
..\glib\glib-$(GLIB_VER).lib $(LDFLAGS)
|
2000-10-06 23:32:59 +02:00
|
|
|
|
|
|
|
libgplugin_b.dll : libgplugin_b.obj
|
2001-07-20 19:01:30 +02:00
|
|
|
$(CC) $(CFLAGS) -LD libgplugin_b.obj gmodule-$(GLIB_VER).lib \
|
|
|
|
..\glib\glib-$(GLIB_VER).lib $(LDFLAGS)
|
2000-10-06 23:32:59 +02:00
|
|
|
|
|
|
|
clean::
|
|
|
|
del gmoduleconf.h
|