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 = -FImsvc_recommended_pragmas.h -I .. -I ..\glib -I ..\gmodule
11 DEFINES = -DHAVE_CONFIG_H -DENABLE_REGEX
13 NONAUTOMATIC_TESTS = \
17 unicode-normalize.exe \
25 bookmarkfile-test.exe \
33 errorcheck-mutex-test.exe \
41 #c99 markup-collect.exe \
42 markup-escape-test.exe \
44 #main? memchunks.exe \
57 #unistd slice-concurrent.exe\
58 slice-threadinit.exe \
65 #unistd timeloop-basic.exe \
66 #unistd timeloop-closure.exe \
67 #unistd timeloop.exe \
70 unicode-caseconv.exe \
71 unicode-encoding.exe \
79 libmoduletestplugin_a.dll \
80 libmoduletestplugin_b.dll
82 all : $(TESTS) $(NONAUTOMATIC_TESTS) $(DLLS)
86 $(CC) $(CFLAGS) -Fe$@ $< ..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib $(LDFLAGS) user32.lib /subsystem:console
88 gio-ls.exe : gio-ls.obj
89 $(CC) $(CFLAGS) -Fe$@ gio-ls.obj \
90 ..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib \
91 ..\gobject\gobject-2.0.lib ..\gio\gio-2.0.lib \
92 $(LDFLAGS) user32.lib /subsystem:console
94 slice-test.exe : memchunks.obj slice-test.obj
95 $(CC) $(CFLAGS) -Fe$@ memchunks.obj slice-test.obj \
96 ..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib $(LDFLAGS) user32.lib /subsystem:console
98 libmoduletestplugin_a.dll : libmoduletestplugin_a.obj
99 $(CC) $(CFLAGS) -LD libmoduletestplugin_a.obj ..\gmodule\gmodule-2.0.lib ..\glib\glib-2.0.lib $(LDFLAGS)
101 libmoduletestplugin_b.dll : libmoduletestplugin_b.obj
102 $(CC) $(CFLAGS) -LD libmoduletestplugin_b.obj ..\gmodule\gmodule-2.0.lib ..\glib\glib-2.0.lib $(LDFLAGS)
105 for %p in ($(TESTS)) do set PATH=..\glib;..\gmodule;..\gobject;..\gthread;%PATH% && %p