makefile.msc 5.9 KB
Newer Older
1 2 3 4 5 6 7
# autogenerated from automake.am with automake.py
TOP = ..\..
PRJ_TOP = ..
PACKAGE = gio
PKG_VER = 2.0
!INCLUDE $(TOP)\glib\build\win32\make.msc

Hans Breuer's avatar
Hans Breuer committed
8
SUBDIRS = win32
9 10 11 12 13 14 15 16 17 18

sub-all: 
	for %d in ($(SUBDIRS)) do nmake -nologo -f makefile.msc sub-one THIS=%d

sub-one:
	cd $(THIS)
	nmake -nologo -f makefile.msc
	cd ..

INCLUDES = \
19
	-FImsvc_recommended_pragmas.h \
20 21 22 23 24
	-I .. -I ..\glib -I ..\gmodule -I . \
	$(INTL_CFLAGS)

DEFINES = \
	-DG_LOG_DOMAIN=\"GLib-GIO\" \
25 26
	-DGIO_MODULE_DIR=\"$(libdir)/gio/modules\" \
	-DGIO_COMPILATION
27 28 29 30 31 32 33 34 35 36 37 38 39 40

appinfo_sources = \
	gwin32appinfo.c gwin32appinfo.h

gio_headers =			\
	gappinfo.h 		\
	gasyncresult.h 		\
	gbufferedinputstream.h 	\
	gbufferedoutputstream.h \
	gcancellable.h 		\
	gcontenttype.h 		\
	gdatainputstream.h 	\
	gdataoutputstream.h 	\
	gdrive.h 		\
Hans Breuer's avatar
Hans Breuer committed
41
	gemblem.h		\
Hans Breuer's avatar
Hans Breuer committed
42
	gemblemedicon.h		\
43 44 45 46 47 48 49 50 51 52 53 54 55 56
	gfile.h 		\
	gfileattribute.h 	\
	gfileenumerator.h 	\
	gfileicon.h 		\
	gfileinfo.h 		\
	gfileinputstream.h 	\
	gfilemonitor.h 		\
	gfilenamecompleter.h 	\
	gfileoutputstream.h 	\
	gfilterinputstream.h 	\
	gfilteroutputstream.h 	\
	gicon.h 		\
	ginputstream.h 		\
	gio.h			\
Hans Breuer's avatar
Hans Breuer committed
57 58
	giotypes.h		\
	gioenums.h		\
59 60 61 62
	gioerror.h 		\
	giomodule.h 		\
	gioscheduler.h 		\
	gloadableicon.h 	\
Hans Breuer's avatar
Hans Breuer committed
63
	gmount.h 		\
64 65 66
	gmemoryinputstream.h 	\
	gmemoryoutputstream.h 	\
	gmountoperation.h 	\
Hans Breuer's avatar
Hans Breuer committed
67
	gnativevolumemonitor.h 	\
68 69 70 71 72 73 74 75 76 77 78 79
	goutputstream.h 	\
	gseekable.h 		\
	gsimpleasyncresult.h 	\
	gthemedicon.h 		\
	gvfs.h 			\
	gvolume.h 		\
	gvolumemonitor.h 	\
	$(NULL)

OBJECTS = \
	gappinfo.obj \
	gasynchelper.obj \
Hans Breuer's avatar
Hans Breuer committed
80
	gasyncinitable.obj \
81 82 83 84 85
	gasyncresult.obj \
	gbufferedinputstream.obj \
	gbufferedoutputstream.obj \
	gcancellable.obj \
	gcontenttype.obj \
86
	gdatagrambased.obj \
87 88
	gdatainputstream.obj \
	gdataoutputstream.obj \
89
#	gdesktopappinfo.obj \
90 91
	gdrive.obj \
	gdummyfile.obj \
Hans Breuer's avatar
Hans Breuer committed
92
	gemblem.obj \
Hans Breuer's avatar
Hans Breuer committed
93
	gemblemedicon.obj \
94 95 96 97 98 99
	gfile.obj \
	gfileattribute.obj \
	gfileenumerator.obj \
	gfileicon.obj \
	gfileinfo.obj \
	gfileinputstream.obj \
Hans Breuer's avatar
Hans Breuer committed
100
	gfileiostream.obj \
101 102 103 104 105 106
	gfilemonitor.obj \
	gfilenamecompleter.obj \
	gfileoutputstream.obj \
	gfilterinputstream.obj \
	gfilteroutputstream.obj \
	gicon.obj \
Hans Breuer's avatar
Hans Breuer committed
107 108 109
	ginetaddress.obj \
	ginetsocketaddress.obj \
	ginitable.obj \
110 111 112 113 114
	ginputstream.obj \
	gioenumtypes.obj \
	gioerror.obj \
	giomodule.obj \
	gioscheduler.obj \
Hans Breuer's avatar
Hans Breuer committed
115
	giostream.obj \
116
	gloadableicon.obj \
Hans Breuer's avatar
Hans Breuer committed
117
	glocalfileiostream.obj \
118 119
	gmemoryinputstream.obj \
	gmemoryoutputstream.obj \
120
	gmount.obj \
121 122
	gmountoperation.obj \
	gnativevolumemonitor.obj \
Hans Breuer's avatar
Hans Breuer committed
123 124
	gnetworkaddress.obj \
	gnetworkservice.obj \
125 126
	goutputstream.obj \
	gpollfilemonitor.obj \
Hans Breuer's avatar
Hans Breuer committed
127
	gresolver.obj \
128 129
	gseekable.obj \
	gsimpleasyncresult.obj \
Hans Breuer's avatar
Hans Breuer committed
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
	gsocket.obj \
	gsocketaddress.obj \
	gsocketaddressenumerator.obj \
	gsocketclient.obj \
	gsocketconnectable.obj \
	gsocketconnection.obj \
	gsocketcontrolmessage.obj \
	gsocketlistener.obj \
	gsocketservice.obj \
	gsocketinputstream.obj \
	gsocketoutputstream.obj \
	gsrvtarget.obj \
	gtcpconnection.obj \
	gthreadedresolver.obj \
	gthreadedsocketservice.obj \
145 146 147 148 149 150 151 152 153 154 155 156
	gthemedicon.obj \
	gunionvolumemonitor.obj \
	gvfs.obj \
	gvolume.obj \
	gvolumemonitor.obj \
	\
	glocalvfs.obj \
	glocalfile.obj \
	glocalfileenumerator.obj \
	glocalfileinfo.obj \
	glocalfileinputstream.obj \
	glocalfileoutputstream.obj \
157 158
	glocalfilemonitor.obj \
	glocaldirectorymonitor.obj \
159 160
	gwin32appinfo.obj \
	\
161
	gio-marshal.obj \
162
	gwin32mount.obj \
Hans Breuer's avatar
Hans Breuer committed
163 164
	gwin32volumemonitor.obj \
	gwin32resolver.obj 
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223

libgio_2_0_la_LIBADD = \
	$(top_builddir)/glib/libglib-2.0.la \
	$(top_builddir)/gobject/libgobject-2.0.la \
	$(top_builddir)/gmodule/libgmodule-2.0.la \
	$(platform_libadd) \
	$(SELINUX_LIBS) \
	$(GLIB_LIBS) \
	$(XATTR_LIBS) \
	$(NULL)

unix_sources = \
	gunixdrive.c \
	gunixdrive.h \
	gunixmounts.c \
	gunixmounts.h \
	gunixvolume.c \
	gunixvolume.h \
	gunixvolumemonitor.c \
	gunixvolumemonitor.h \
	$(NULL)

marshal_sources = \
	gio-marshal.h gio-marshal.c $(NULL)

GLIB_GEN_MARSHAL = ..\gobject\glib-genmarshal.exe 

gio-marshal.h: gio-marshal.list
	$(GLIB_GEN_MARSHAL) --prefix=_gio_marshal gio-marshal.list --header >> xgen-gwmh \
	&& copy /y xgen-gwmh gio-marshal.h \
	&& del xgen-gwmh xgen-gwmh~

gio-marshal.c: gio-marshal.h
	echo #include "gio-marshal.h" >> xgen-gwmc \
	&& $(GLIB_GEN_MARSHAL) --prefix=_gio_marshal gio-marshal.list --body >> xgen-gwmc \
	&& copy xgen-gwmc gio-marshal.c \
	&& del xgen-gwmc xgen-gwmc~

local_sources = \
	glocaldirectorymonitor.c \
	glocaldirectorymonitor.h \
	glocalfile.c \
	glocalfile.h \
	glocalfileenumerator.c \
	glocalfileenumerator.h \
	glocalfileinfo.c \
	glocalfileinfo.h \
	glocalfileinputstream.c \
	glocalfileinputstream.h \
	glocalfilemonitor.c \
	glocalfilemonitor.h \
	glocalfileoutputstream.c \
	glocalfileoutputstream.h \
	glocalvfs.c \
	glocalvfs.h \
	$(NULL)

all : \
	$(PRJ_TOP)\config.h \
Hans Breuer's avatar
Hans Breuer committed
224
	sub-all	\
225 226 227
	gio-marshal.c \
	gioenumtypes.h		\
	gioenumtypes.c		\
Hans Breuer's avatar
Hans Breuer committed
228
	libgio-$(PKG_VER)-0.dll
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247


$(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
	copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h

gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
	$(PERL) ..\gobject\glib-mkenums --template gioenumtypes.h.template $(gio_headers) > gioenumtypes.h
	
gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
	$(PERL) ..\gobject\glib-mkenums --template gioenumtypes.c.template $(gio_headers) > gioenumtypes.c

gio.def: gio.symbols
	echo EXPORTS > gio.def
	cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DINCLUDE_INTERNAL_SYMBOLS -DALL_FILES \
		-DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \
		-DG_GNUC_PRINTF=;G_GNUC_PRINTF gio.symbols >> gio.def

RESOURCE = $(PACKAGE).res

Hans Breuer's avatar
Hans Breuer committed
248 249 250 251 252
$(PACKAGE).res : $(PACKAGE).rc
	rc -DBUILDNUMBER=0 -r -fo $(PACKAGE).res $(PACKAGE).rc

libgio-$(PKG_VER)-0.dll : $(OBJECTS) win32\giowin32.lib $(PACKAGE).def $(RESOURCE)
	$(CC) $(CFLAGS) -LD -Felibgio-$(PKG_VER)-0.dll $(OBJECTS) $(RESOURCE) \
253
	..\glib\glib-2.0.lib ..\gobject\gobject-2.0.lib ..\gmodule\gmodule-2.0.lib \
Hans Breuer's avatar
Hans Breuer committed
254
	win32\giowin32.lib \
255
	$(INTL_LIBS) \
Hans Breuer's avatar
Hans Breuer committed
256
	kernel32.lib user32.lib advapi32.lib shell32.lib wsock32.lib ws2_32.lib dnsapi.lib mpr.lib $(LDFLAGS) \
257
	/implib:gio-2.0.lib /def:$(PACKAGE).def
258 259

.c.obj :
260
	$(CC) $(CFLAGS) -c $(PKG_CFLAGS) $<