1 ## Makefile for building the GLib test programs with gcc for mingw.
2 ## Use: make -f makefile.mingw check
6 include ../build/win32/make.mingw
8 ################################################################
10 # Nothing much configurable below
12 INCLUDES = -I .. -I ../glib -I ../gmodule
13 DEFINES = -DHAVE_CONFIG_H
15 NONAUTOMATIC_TESTS = \
20 unicode-normalize.exe \
47 unicode-caseconv.exe \
51 libmoduletestplugin_a.dll \
52 libmoduletestplugin_b.dll
54 all: $(TESTS) $(NONAUTOMATIC_TESTS) $(DLLS)
59 $(CC) $(CFLAGS) -o $@ $< -L ../gthread -lgthread-2.0 -L ../glib -lglib-2.0
61 module-test.exe : module-test.o
62 $(CC) $(CFLAGS) -Wl,--base-file,module-test.base -o module-test.exe module-test.o -L ../glib -lglib-2.0 -L ../gmodule -lgmodule-2.0 $(LDFLAGS)
63 $(DLLTOOL) --base-file module-test.base --output-exp module-test.exp module-test.o
64 $(CC) $(CFLAGS) -Wl,--base-file,module-test.base,module-test.exp -o module-test.exe module-test.o -L ../glib -lglib-2.0 -L ../gmodule -lgmodule-2.0 $(LDFLAGS)
65 $(DLLTOOL) --base-file module-test.base --output-exp module-test.exp module-test.o
66 $(CC) $(CFLAGS) -Wl,module-test.exp -o module-test.exe module-test.o -L ../glib -lglib-2.0 -L ../gmodule -lgmodule-2.0 $(LDFLAGS)
68 libmoduletestplugin_a.dll : libmoduletestplugin_a.o
69 $(BUILD_DLL) libmoduletestplugin_a - libmoduletestplugin_a.o -L ../glib -lglib-2.0 -L ../gmodule -lgmodule-2.0
71 libmoduletestplugin_b.dll : libmoduletestplugin_b.o
72 $(BUILD_DLL) libmoduletestplugin_b - libmoduletestplugin_b.o -L ../glib -lglib-2.0 -L ../gmodule -lgmodule-2.0
75 @for P in $(TESTS) ; do echo $$P; PATH=../glib:../gmodule:../gobject:../gthread:$$PATH ./$$P; done
76 @echo All tests successful.