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
41 unicode-encoding.exe \
44 libmoduletestplugin_a.dll \
45 libmoduletestplugin_b.dll
49 ifeq ($(wildcard makefile.mingw.in),makefile.mingw.in)
50 makefile.mingw: makefile.mingw.in
51 sed -e 's,@GLIB[_]VERSION@,@GLIB_VERSION@,' <$< >$@
57 $(CC) $(CFLAGS) -o $@ $< -L ../gthread -lgthread -L ../glib -lglib
59 module-test.exe : module-test.o
60 $(CC) $(CFLAGS) -Wl,--base-file,module-test.base -o module-test.exe module-test.o -L ../glib -lglib -L ../gmodule -lgmodule $(LDFLAGS)
61 $(DLLTOOL) --base-file module-test.base --output-exp module-test.exp module-test.o
62 $(CC) $(CFLAGS) -Wl,--base-file,module-test.base,module-test.exp -o module-test.exe module-test.o -L ../glib -lglib -L ../gmodule -lgmodule $(LDFLAGS)
63 $(DLLTOOL) --base-file module-test.base --output-exp module-test.exp module-test.o
64 $(CC) $(CFLAGS) -Wl,module-test.exp -o module-test.exe module-test.o -L ../glib -lglib -L ../gmodule -lgmodule $(LDFLAGS)
66 libmoduletestplugin_a.dll : libmoduletestplugin_a.o
67 $(BUILD_DLL) libmoduletestplugin_a - libmoduletestplugin_a.o -L ../glib -lglib -L ../gmodule -lgmodule
69 libmoduletestplugin_b.dll : libmoduletestplugin_b.o
70 $(BUILD_DLL) libmoduletestplugin_b - libmoduletestplugin_b.o -L ../glib -lglib -L ../gmodule -lgmodule
73 @for P in $(TESTS) ; do echo $$P; ./$$P; done
74 @echo All tests successful.