1 ## Makefile for building the GLib dlls with Microsoft C
2 ## Use: nmake -f makefile.msc
6 !INCLUDE ..\build\win32\make.msc
8 ################################################################
10 INCLUDES = -FImsvc_recommended_pragmas.h -I . -I ..
11 DEFINES = -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG
12 DEPCFLAGS = -Zm400 $(INTL_CFLAGS) $(LIBICONV_CFLAGS) $(DIRENT_CFLAGS)
18 libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll \
19 glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib \
20 gspawn-win32-helper.exe \
78 ..\glibconfig.h: ..\glibconfig.h.win32
79 copy ..\glibconfig.h.win32 ..\glibconfig.h
81 ..\config.h: ..\config.h.win32
82 copy ..\config.h.win32 ..\config.h
84 localcharset.c : libcharset/localcharset.c
85 copy libcharset\localcharset.c localcharset.c
89 # create a static libary
90 # static library can well have the real version number in the name
91 glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib : $(glib_OBJECTS) gnulib\gnulib.lib
92 lib /out:glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib $(glib_OBJECTS) gnulib\gnulib.lib
94 libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll : $(glib_OBJECTS) gnulib\gnulib.lib glib.def
95 $(CC) $(CFLAGS) -LD -Fe$@ $(glib_OBJECTS) $(LIBICONV_LIBS) $(INTL_LIBS) \
96 gnulib\gnulib.lib $(DIRENT_LIBS) user32.lib advapi32.lib shell32.lib wsock32.lib $(LDFLAGS) /implib:glib-2.0.lib /def:glib.def
98 gspawn-win32-helper.exe : gspawn-win32-helper.c libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll
99 $(CC) $(CFLAGS) -Fe$@ -DG_LOG_DOMAIN=\"gspawn-win32-helper\" gspawn-win32-helper.c glib-2.0.lib $(LDFLAGS) /subsystem:windows user32.lib
101 ################ other stuff