1 ## Makefile for building the gmodule dll with Microsoft C
2 ## Use: nmake -f makefile.msc install
6 !INCLUDE ..\build\win32\make.msc
8 ################################################################
10 INCLUDES = -I .. -I . -I ..\glib
11 DEFINES = -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"GModule\"
15 libgmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@-@LT_CURRENT_MINUS_AGE@.dll \
21 gmoduleconf.h: gmoduleconf.h.win32
22 copy gmoduleconf.h.win32 gmoduleconf.h
24 libgmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@-@LT_CURRENT_MINUS_AGE@.dll : $(gmodule_OBJECTS) gmodule.def
25 $(CC) $(CFLAGS) -LD -Fe$@ $(gmodule_OBJECTS) \
26 ..\glib\glib-$(GLIB_VER).lib $(LDFLAGS) /implib:gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib /def:gmodule.def
28 ################ test prog
30 testgmodule.exe : libgmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@-@LT_CURRENT_MINUS_AGE@.dll testgmodule.obj libgplugin_a.dll libgplugin_b.dll
31 $(CC) $(CFLAGS) testgmodule.obj gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib \
32 ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS) /subsystem:console
34 libgplugin_a.dll : libgplugin_a.obj
35 $(CC) $(CFLAGS) -LD libgplugin_a.obj gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib \
36 ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS)
38 libgplugin_b.dll : libgplugin_b.obj
39 $(CC) $(CFLAGS) -LD libgplugin_b.obj gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib \
40 ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS)