1 ## Makefile for building the GLib test programs with Microsoft C
2 ## Use: nmake -f makefile.msc check
6 !INCLUDE ..\build\win32\make.msc
8 ################################################################
10 INCLUDES = -I .. -I ..\glib -I ..\gmodule
11 DEFINES = -DHAVE_CONFIG_H
13 NONAUTOMATIC_TESTS = \
18 unicode-normalize.exe \
38 # strfunc-test doesn't compile with MSVC
46 unicode-caseconv.exe \
50 libmoduletestplugin_a.dll \
51 libmoduletestplugin_b.dll
53 all : $(TESTS) $(NONAUTOMATIC_TESTS) $(DLLS)
57 $(CC) $(CFLAGS) -Fe$@ $< ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\gmodule\gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\gthread\gthread-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS) user32.lib /subsystem:console
59 libmoduletestplugin_a.dll : libmoduletestplugin_a.obj
60 $(CC) $(CFLAGS) -LD libmoduletestplugin_a.obj ..\gmodule\gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS)
62 libmoduletestplugin_b.dll : libmoduletestplugin_b.obj
63 $(CC) $(CFLAGS) -LD libmoduletestplugin_b.obj ..\gmodule\gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS)
66 for %p in ($(TESTS)) do set PATH=..\glib;..\gmodule;..\gobject;..\gthread;%PATH% && %p