Home | History | Annotate | Download | only in gio
      1 # autogenerated from automake.am with automake.py
      2 TOP = ..\..
      3 PRJ_TOP = ..
      4 PACKAGE = gio
      5 PKG_VER = 2.0
      6 !INCLUDE $(TOP)\glib\build\win32\make.msc
      7 
      8 # SUBDIRS = fam
      9 
     10 sub-all: 
     11 	for %d in ($(SUBDIRS)) do nmake -nologo -f makefile.msc sub-one THIS=%d
     12 
     13 sub-one:
     14 	cd $(THIS)
     15 	nmake -nologo -f makefile.msc
     16 	cd ..
     17 
     18 INCLUDES = \
     19 	-FImsvc_recommended_pragmas.h \
     20 	-I .. -I ..\glib -I ..\gmodule -I . \
     21 	$(INTL_CFLAGS)
     22 
     23 DEFINES = \
     24 	-DG_LOG_DOMAIN=\"GLib-GIO\" \
     25 	-DGIO_MODULE_DIR=\"$(libdir)/gio/modules\" \
     26 	-DGIO_COMPILATION
     27 
     28 appinfo_sources = \
     29 	gwin32appinfo.c gwin32appinfo.h
     30 
     31 gio_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 
     76 OBJECTS = \
     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 
    141 libgio_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 
    151 unix_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 
    162 NULL = \
    163 	
    164 
    165 libgio_2_0_la_LDFLAG = \
    166 	-export-dynamic \
    167 	$(no_undefined) \
    168 	-export-symbols-regex \
    169 	'^g_.*'
    170 
    171 giounixincludedi = \
    172 	$(includedir)/gio-unix-2.0/gio
    173 
    174 platform_libadd = \
    175 	-lshlwapi
    176 
    177 marshal_sources = \
    178 	gio-marshal.h gio-marshal.c $(NULL)
    179 
    180 gioincludedi = \
    181 	$(includedir)/glib-2.0/gio/
    182 
    183 EXTRA_DIST = \
    184 	gio-marshal.list $(NULL)
    185 
    186 CLEANFILES = \
    187 	$(marshal_sources) $(NULL)
    188 
    189 no_undefined = \
    190 	-no-undefined
    191 
    192 giounixinclude_HEADERS = \
    193 	gunixmounts.h $(NULL)
    194 
    195 GLIB_GEN_MARSHAL = ..\gobject\glib-genmarshal.exe 
    196 
    197 gio-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 
    202 gio-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 
    208 local_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 
    227 all : \
    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 
    240 gioalias.h: gio.symbols
    241 	perl ..\glib\makegalias.pl < gio.symbols > gioalias.h
    242 
    243 gioaliasdef.c: gio.symbols
    244 	  perl ..\glib\makegalias.pl -def < gio.symbols > gioaliasdef.c
    245 
    246 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
    247 	$(PERL) ..\gobject\glib-mkenums --template gioenumtypes.h.template $(gio_headers) > gioenumtypes.h
    248 	
    249 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
    250 	$(PERL) ..\gobject\glib-mkenums --template gioenumtypes.c.template $(gio_headers) > gioenumtypes.c
    251 
    252 gio.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 
    258 gwin32directorymonitor.obj : win32\gwin32directorymonitor.c 
    259 	$(CC) $(CFLAGS) -I win32 -c win32\gwin32directorymonitor.c
    260 
    261 RESOURCE = $(PACKAGE).res
    262 
    263 libgio-$(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