1 ## Makefile for building the GLib DLL with gcc for mingw. The build
2 ## uses tools running on cygwin, however.
4 ## Use: make -f makefile.mingw
8 include ../build/win32/make.mingw
10 ################################################################
12 # Nothing much configurable below
15 DEFINES = -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=g_log_domain_glib -DG_ENABLE_DEBUG -DDLL_EXPORT
16 DEPCFLAGS = $(INTL_CFLAGS) $(LIBICONV_CFLAGS)
21 glib-@GLIB_VERSION@.dll \
22 gspawn-win32-helper.exe
69 ../glibconfig.h: ../glibconfig.h.win32
72 ../config.h: ../config.h.win32
75 ifeq ($(wildcard makefile.mingw.in),makefile.mingw.in)
76 makefile.mingw: makefile.mingw.in
77 sed -e 's,@GLIB[_]VERSION@,@GLIB_VERSION@,' <$< >$@
80 ################ The glib DLL
82 glib-@GLIB_VERSION@.dll : $(glib_OBJECTS) glib.def
83 $(BUILD_DLL) glib @GLIB_VERSION@ glib.def $(glib_OBJECTS) $(INTL_LIBS) $(LIBICONV_LIBS) -luser32 -lwsock32
85 gspawn-win32-helper.exe : gspawn-win32-helper.c
86 $(CC) $(CFLAGS) -mwindows -DG_LOG_DOMAIN=\"gspawn-win32-helper\" -o $@ $< -L . -lglib