1# autogenerated from automake.am with automake.py 2TOP = ..\.. 3PRJ_TOP = .. 4PACKAGE = gio 5PKG_VER = 2.0 6!INCLUDE $(TOP)\glib\build\win32\make.msc 7 8# SUBDIRS = fam 9 10sub-all: 11 for %d in ($(SUBDIRS)) do nmake -nologo -f makefile.msc sub-one THIS=%d 12 13sub-one: 14 cd $(THIS) 15 nmake -nologo -f makefile.msc 16 cd .. 17 18INCLUDES = \ 19 -FImsvc_recommended_pragmas.h \ 20 -I .. -I ..\glib -I ..\gmodule -I . \ 21 $(INTL_CFLAGS) 22 23DEFINES = \ 24 -DG_LOG_DOMAIN=\"GLib-GIO\" \ 25 -DGIO_MODULE_DIR=\"$(libdir)/gio/modules\" \ 26 -DGIO_COMPILATION 27 28appinfo_sources = \ 29 gwin32appinfo.c gwin32appinfo.h 30 31gio_headers = \ 32 gappinfo.h \ 33 gasyncresult.h \ 34 gbufferedinputstream.h \ 35 gbufferedoutputstream.h \ 36 gcancellable.h \ 37 gcontenttype.h \ 38 gdatainputstream.h \ 39 gdataoutputstream.h \ 40 gdrive.h \ 41 gemblemedicon.h \ 42 gfile.h \ 43 gfileattribute.h \ 44 gfileenumerator.h \ 45 gfileicon.h \ 46 gfileinfo.h \ 47 gfileinputstream.h \ 48 gfilemonitor.h \ 49 gfilenamecompleter.h \ 50 gfileoutputstream.h \ 51 gfilterinputstream.h \ 52 gfilteroutputstream.h \ 53 gicon.h \ 54 ginputstream.h \ 55 gio.h \ 56 giotypes.h \ 57 gioenums.h \ 58 gioerror.h \ 59 giomodule.h \ 60 gioscheduler.h \ 61 gloadableicon.h \ 62 gmount.h \ 63 gmemoryinputstream.h \ 64 gmemoryoutputstream.h \ 65 gmountoperation.h \ 66 gnativevolumemonitor.h \ 67 goutputstream.h \ 68 gseekable.h \ 69 gsimpleasyncresult.h \ 70 gthemedicon.h \ 71 gvfs.h \ 72 gvolume.h \ 73 gvolumemonitor.h \ 74 $(NULL) 75 76OBJECTS = \ 77 gappinfo.obj \ 78 gasynchelper.obj \ 79 gasyncresult.obj \ 80 gbufferedinputstream.obj \ 81 gbufferedoutputstream.obj \ 82 gcancellable.obj \ 83 gcontenttype.obj \ 84 gdatainputstream.obj \ 85 gdataoutputstream.obj \ 86# gdesktopappinfo.obj \ 87 gdrive.obj \ 88 gdummyfile.obj \ 89 gemblemedicon.obj \ 90 gfile.obj \ 91 gfileattribute.obj \ 92 gfileenumerator.obj \ 93 gfileicon.obj \ 94 gfileinfo.obj \ 95 gfileinputstream.obj \ 96 gfilemonitor.obj \ 97 gfilenamecompleter.obj \ 98 gfileoutputstream.obj \ 99 gfilterinputstream.obj \ 100 gfilteroutputstream.obj \ 101 gicon.obj \ 102 ginputstream.obj \ 103 gioenumtypes.obj \ 104 gioerror.obj \ 105 giomodule.obj \ 106 gioscheduler.obj \ 107 gloadableicon.obj \ 108 gmemoryinputstream.obj \ 109 gmemoryoutputstream.obj \ 110 gmount.obj \ 111 gmountoperation.obj \ 112 gnativevolumemonitor.obj \ 113 goutputstream.obj \ 114 gpollfilemonitor.obj \ 115 gseekable.obj \ 116 gsimpleasyncresult.obj \ 117# gsocketinputstream.obj \ 118# gsocketoutputstream.obj \ 119 gthemedicon.obj \ 120 gunionvolumemonitor.obj \ 121 gvfs.obj \ 122 gvolume.obj \ 123 gvolumemonitor.obj \ 124 \ 125 glocalvfs.obj \ 126 glocalfile.obj \ 127 glocalfileenumerator.obj \ 128 glocalfileinfo.obj \ 129 glocalfileinputstream.obj \ 130 glocalfileoutputstream.obj \ 131 glocalfilemonitor.obj \ 132 glocaldirectorymonitor.obj \ 133 gwin32appinfo.obj \ 134 \ 135 gio-marshal.obj \ 136 gwin32directorymonitor.obj \ 137 gwin32mount.obj \ 138# gwin32volume.obj \ 139 gwin32volumemonitor.obj 140 141libgio_2_0_la_LIBADD = \ 142 $(top_builddir)/glib/libglib-2.0.la \ 143 $(top_builddir)/gobject/libgobject-2.0.la \ 144 $(top_builddir)/gmodule/libgmodule-2.0.la \ 145 $(platform_libadd) \ 146 $(SELINUX_LIBS) \ 147 $(GLIB_LIBS) \ 148 $(XATTR_LIBS) \ 149 $(NULL) 150 151unix_sources = \ 152 gunixdrive.c \ 153 gunixdrive.h \ 154 gunixmounts.c \ 155 gunixmounts.h \ 156 gunixvolume.c \ 157 gunixvolume.h \ 158 gunixvolumemonitor.c \ 159 gunixvolumemonitor.h \ 160 $(NULL) 161 162NULL = \ 163 164 165libgio_2_0_la_LDFLAG = \ 166 -export-dynamic \ 167 $(no_undefined) \ 168 -export-symbols-regex \ 169 '^g_.*' 170 171giounixincludedi = \ 172 $(includedir)/gio-unix-2.0/gio 173 174platform_libadd = \ 175 -lshlwapi 176 177marshal_sources = \ 178 gio-marshal.h gio-marshal.c $(NULL) 179 180gioincludedi = \ 181 $(includedir)/glib-2.0/gio/ 182 183EXTRA_DIST = \ 184 gio-marshal.list $(NULL) 185 186CLEANFILES = \ 187 $(marshal_sources) $(NULL) 188 189no_undefined = \ 190 -no-undefined 191 192giounixinclude_HEADERS = \ 193 gunixmounts.h $(NULL) 194 195GLIB_GEN_MARSHAL = ..\gobject\glib-genmarshal.exe 196 197gio-marshal.h: gio-marshal.list 198 $(GLIB_GEN_MARSHAL) --prefix=_gio_marshal gio-marshal.list --header >> xgen-gwmh \ 199 && copy /y xgen-gwmh gio-marshal.h \ 200 && del xgen-gwmh xgen-gwmh~ 201 202gio-marshal.c: gio-marshal.h 203 echo #include "gio-marshal.h" >> xgen-gwmc \ 204 && $(GLIB_GEN_MARSHAL) --prefix=_gio_marshal gio-marshal.list --body >> xgen-gwmc \ 205 && copy xgen-gwmc gio-marshal.c \ 206 && del xgen-gwmc xgen-gwmc~ 207 208local_sources = \ 209 glocaldirectorymonitor.c \ 210 glocaldirectorymonitor.h \ 211 glocalfile.c \ 212 glocalfile.h \ 213 glocalfileenumerator.c \ 214 glocalfileenumerator.h \ 215 glocalfileinfo.c \ 216 glocalfileinfo.h \ 217 glocalfileinputstream.c \ 218 glocalfileinputstream.h \ 219 glocalfilemonitor.c \ 220 glocalfilemonitor.h \ 221 glocalfileoutputstream.c \ 222 glocalfileoutputstream.h \ 223 glocalvfs.c \ 224 glocalvfs.h \ 225 $(NULL) 226 227all : \ 228 $(PRJ_TOP)\config.h \ 229 gioalias.h \ 230 gioaliasdef.c \ 231 gio-marshal.c \ 232 gioenumtypes.h \ 233 gioenumtypes.c \ 234 libgio-$(PKG_VER).dll 235 236 237$(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32 238 copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h 239 240gioalias.h: gio.symbols 241 perl ..\glib\makegalias.pl < gio.symbols > gioalias.h 242 243gioaliasdef.c: gio.symbols 244 perl ..\glib\makegalias.pl -def < gio.symbols > gioaliasdef.c 245 246gioenumtypes.h: $(gio_headers) gioenumtypes.h.template 247 $(PERL) ..\gobject\glib-mkenums --template gioenumtypes.h.template $(gio_headers) > gioenumtypes.h 248 249gioenumtypes.c: $(gio_headers) gioenumtypes.c.template 250 $(PERL) ..\gobject\glib-mkenums --template gioenumtypes.c.template $(gio_headers) > gioenumtypes.c 251 252gio.def: gio.symbols 253 echo EXPORTS > gio.def 254 cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DINCLUDE_INTERNAL_SYMBOLS -DALL_FILES \ 255 -DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \ 256 -DG_GNUC_PRINTF=;G_GNUC_PRINTF gio.symbols >> gio.def 257 258gwin32directorymonitor.obj : win32\gwin32directorymonitor.c 259 $(CC) $(CFLAGS) -I win32 -c win32\gwin32directorymonitor.c 260 261RESOURCE = $(PACKAGE).res 262 263libgio-$(PKG_VER).dll : $(OBJECTS) $(PACKAGE).def 264 $(CC) $(CFLAGS) -LD -Felibgio-$(PKG_VER).dll $(OBJECTS) \ 265 ..\glib\glib-2.0.lib ..\gobject\gobject-2.0.lib ..\gmodule\gmodule-2.0.lib \ 266 $(INTL_LIBS) \ 267 kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib mpr.lib $(LDFLAGS) \ 268 /implib:gio-2.0.lib /def:$(PACKAGE).def 269 270.c.obj : 271 $(CC) $(CFLAGS) -c $(PKG_CFLAGS) $< 272