1 ## Makefile for building the GLib dlls with Microsoft C
2 ## Use: nmake -f makefile.msc
6 !INCLUDE build\win32\make.msc
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 -DGLIB_COMPILATION -DG_LOG_DOMAIN=g_log_domain_glib -DG_ENABLE_DEBUG
17 DEPCFLAGS = $(INTL_CFLAGS) $(LIBICONV_CFLAGS)
20 glib-$(GLIB_VER).dll \
29 gspawn-win32-helper.exe \
77 glibconfig.h: glibconfig.h.win32
78 copy glibconfig.h.win32 glibconfig.h
80 config.h: config.h.win32
81 copy config.h.win32 config.h
83 makefile.msc: makefile.msc.in
84 $(SED) -e s,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@, \
85 -e s,@GLIB[_]MINOR_VERSION@,@GLIB_MINOR_VERSION@, <makefile.msc.in >$@
89 glib-$(GLIB_VER).dll : $(glib_OBJECTS) glib.def
90 $(CC) $(CFLAGS) -LD -Feglib-$(GLIB_VER).dll $(glib_OBJECTS) $(INTL_LIBS) $(LIBICONV_LIBS) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:glib.def
92 gspawn-win32-helper.exe : gspawn-win32-helper.c glib-$(GLIB_VER).dll
93 $(CC) $(CFLAGS) -Fe$@ -DG_LOG_DOMAIN=\"gspawn-win32-helper\" gspawn-win32-helper.c glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:windows user32.lib
95 ################ subdirectories
99 -$(MAKE) -f makefile.msc all
104 -$(MAKE) -f makefile.msc all
109 -$(MAKE) -f makefile.msc all
112 ################ test progs
114 testglib.obj : testglib.c
115 $(CC) -c $(CFLAGS) -DG_LOG_DOMAIN=\"testglib\" testglib.c
117 testglib.exe : glib-$(GLIB_VER).dll testglib.obj
118 $(CC) $(CFLAGS) -Fetestglib.exe testglib.obj glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
120 testgdate.obj : testgdate.c
121 $(CC) -c $(CFLAGS) -DG_LOG_DOMAIN=\"testgdate\" testgdate.c
123 testgdate.exe : glib-$(GLIB_VER).dll testgdate.obj
124 $(CC) $(CFLAGS) -Fetestgdate.exe testgdate.obj glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
126 testgdateparser.obj : testgdateparser.c
127 $(CC) -c $(CFLAGS) -DG_LOG_DOMAIN=\"testgdateparser\" testgdateparser.c
129 testgdateparser.exe : glib-$(GLIB_VER).dll testgdateparser.obj
130 $(CC) $(CFLAGS) -Fetestgdateparser.exe testgdateparser.obj glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
132 ################ other stuff
138 $(MAKE) -f makefile.msc clean
141 $(MAKE) -f makefile.msc clean
144 $(MAKE) -f makefile.msc clean