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 # mainloop-test removed for now until it is fixed
42 unicode-encoding.exe \
45 libmoduletestplugin_a.dll \
46 libmoduletestplugin_b.dll
53 $(CC) $(CFLAGS) -o $@ $< -L ../gthread -lgthread-1.3 -L ../glib -lglib-1.3
55 module-test.exe : module-test.o
56 $(CC) $(CFLAGS) -Wl,--base-file,module-test.base -o module-test.exe module-test.o -L ../glib -lglib-1.3 -L ../gmodule -lgmodule-1.3 $(LDFLAGS)
57 $(DLLTOOL) --base-file module-test.base --output-exp module-test.exp module-test.o
58 $(CC) $(CFLAGS) -Wl,--base-file,module-test.base,module-test.exp -o module-test.exe module-test.o -L ../glib -lglib-1.3 -L ../gmodule -lgmodule-1.3 $(LDFLAGS)
59 $(DLLTOOL) --base-file module-test.base --output-exp module-test.exp module-test.o
60 $(CC) $(CFLAGS) -Wl,module-test.exp -o module-test.exe module-test.o -L ../glib -lglib-1.3 -L ../gmodule -lgmodule-1.3 $(LDFLAGS)
62 libmoduletestplugin_a.dll : libmoduletestplugin_a.o
63 $(BUILD_DLL) libmoduletestplugin_a - libmoduletestplugin_a.o -L ../glib -lglib-1.3 -L ../gmodule -lgmodule-1.3
65 libmoduletestplugin_b.dll : libmoduletestplugin_b.o
66 $(BUILD_DLL) libmoduletestplugin_b - libmoduletestplugin_b.o -L ../glib -lglib-1.3 -L ../gmodule -lgmodule-1.3
69 @for P in $(TESTS) ; do echo $$P; ./$$P; done
70 @echo All tests successful.