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
13 NONAUTOMATIC_TESTS = \
18 unicode-normalize.exe \
39 # strfunc-test doesn't compile with MSVC
42 # strtod-test doesn't either
48 unicode-caseconv.exe \
49 unicode-encoding.exe \
53 libmoduletestplugin_a.dll \
54 libmoduletestplugin_b.dll
56 all : $(TESTS) $(NONAUTOMATIC_TESTS) $(DLLS)
60 $(CC) $(CFLAGS) -Fe$@ $< ..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib ..\gthread\gthread-2.0.lib $(LDFLAGS) user32.lib /subsystem:console
62 libmoduletestplugin_a.dll : libmoduletestplugin_a.obj
63 $(CC) $(CFLAGS) -LD libmoduletestplugin_a.obj ..\gmodule\gmodule-2.0.lib ..\glib\glib-2.0.lib $(LDFLAGS)
65 libmoduletestplugin_b.dll : libmoduletestplugin_b.obj
66 $(CC) $(CFLAGS) -LD libmoduletestplugin_b.obj ..\gmodule\gmodule-2.0.lib ..\glib\glib-2.0.lib $(LDFLAGS)
69 for %p in ($(TESTS)) do set PATH=..\glib;..\gmodule;..\gobject;..\gthread;%PATH% && %p