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 # Possibly override GLib version in build\win32\module.defs
9 GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
11 ################################################################
13 # Nothing much configurable below
16 DEFINES = -DHAVE_CONFIG_H
44 ifeq ($(wildcard makefile.mingw.in),makefile.mingw.in)
45 makefile.mingw: makefile.mingw.in
46 sed -e 's,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@,' \
47 -e 's,@GLIB[_]MINOR_VERSION@,@GLIB_MINOR_VERSION@,' <$< >$@
53 $(CC) $(CFLAGS) -o $@ $< -L .. -lglib-$(GLIB_VER) -L ../gthread -lgthread-$(GLIB_VER)
56 @for P in $(TESTS) ; do echo $$P; ./$$P; done
57 @echo All tests successful.