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 ..
12 -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=\"GLib\" \
13 -DG_ENABLE_DEBUG -DPCRE_STATIC -DG_DISABLE_DEPRECATED \
16 DEPCFLAGS = -Zm400 $(INTL_CFLAGS) $(DIRENT_CFLAGS)
24 glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib \
25 gspawn-win32-helper.exe \
26 gspawn-win32-helper-console.exe \
102 ..\glibconfig.h: ..\glibconfig.h.win32
103 copy ..\glibconfig.h.win32 ..\glibconfig.h
105 ..\config.h: ..\config.h.win32
106 copy ..\config.h.win32 ..\config.h
108 localcharset.obj : libcharset\localcharset.c
109 $(CC) $(CFLAGS) -DLIBDIR=\".\" -c libcharset\localcharset.c
111 glib.def: glib.symbols
112 echo EXPORTS > glib.def
113 cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DINCLUDE_INTERNAL_SYMBOLS -DALL_FILES \
114 -DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \
115 -DG_GNUC_PRINTF=;G_GNUC_PRINTF -DG_GNUC_FORMAT=;G_GNUC_FORMAT glib.symbols >> glib.def
118 rc -DBUILDNUMBER=0 -r -fo glib.res glib.rc
120 ################ glib
122 # create a static libary
123 # static library can well have the real version number in the name
124 glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib : $(glib_OBJECTS) gnulib\gnulib.lib pcre\pcre.lib
125 lib /out:glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib $(glib_OBJECTS) gnulib\gnulib.lib pcre\pcre.lib
127 libglib-2.0-0.dll : $(glib_OBJECTS) gnulib\gnulib.lib pcre\pcre.lib glib.def glib.res
128 $(CC) $(CFLAGS) -LD -Fe$@ $(glib_OBJECTS) glib.res $(INTL_LIBS) \
129 gnulib\gnulib.lib pcre\pcre.lib $(DIRENT_LIBS) user32.lib advapi32.lib shell32.lib wsock32.lib ole32.lib ws2_32.lib winmm.lib \
130 $(LDFLAGS) /implib:glib-2.0.lib /def:glib.def
132 gspawn-win32-helper.exe : gspawn-win32-helper.c libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll
133 $(CC) $(CFLAGS) -Fe$@ -DG_LOG_DOMAIN=\"gspawn-win32-helper\" gspawn-win32-helper.c glib-2.0.lib $(LDFLAGS) /subsystem:windows user32.lib
135 gspawn-win32-helper-console.exe : gspawn-win32-helper.c libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll
136 $(CC) $(CFLAGS) -Fe$@ -DG_LOG_DOMAIN=\"gspawn-win32-helper\" gspawn-win32-helper.c glib-2.0.lib $(LDFLAGS) /subsystem:console user32.lib
138 ################ other stuff