4 !INCLUDE $(TOP)\glib\build\win32\make.msc
6 # don't break on win32 only with it
7 # -DGTK_DISABLE_DEPRECATED \
10 #PKG_CFLAGS = -FImsvc_recommended_pragmas.h \
17 -DHAVE_FREETYPE $(FREETYPE2_CFLAGS) \
19 -DHAVE_LIBART $(LIBART_CFLAGS) \
22 # in GTK_CFLAGS: $(GLIB_CFLAGS)
24 PKG_LINK = $(GTK2_LIBS) $(PANGOWIN32_LIBS) $(GLIB_LIBS) \
28 $(LIBXML2_LIBS) $(ZLIB_LIBS) \
29 $(LIBART_LIBS) $(GDK_PIXBUF_LIBS) \
33 dia_broken_icon pixmaps\broken.png \
34 dia_broken_chain_icon pixmaps\broken-chain.png \
35 dia_unbroken_chain_icon pixmaps\unbroken-chain.png
37 # Note that this doesn't seem to get run automatically. It should, but
38 # I'm not gonna chase goblins right now.
40 gdk-pixbuf-csource --build-list \
41 $(ICON_PNG_PAIRS) > dia-lib-icons.h
67 diainteractiverenderer.obj \
68 dialibartrenderer.obj \
115 # rules to generate built sources
117 # setup autogeneration dependancies
118 gen_sources = xgen-gwmh xgen-gwmc
119 CLEANFILES = $(gen_sources)
121 diamarshal.h: diamarshal.list
122 $(GLIB)\gobject\glib-genmarshal --prefix=dia_marshal diamarshal.list --header >> xgen-gwmh \
123 && copy /y xgen-gwmh diamarshal.h \
124 && del xgen-gwmh xgen-gwmh~
126 diamarshal.c: diamarshal.h
127 echo #include "diamarshal.h" >> xgen-gwmc \
128 && $(GLIB)\gobject\glib-genmarshal --prefix=dia_marshal diamarshal.list --body >> xgen-gwmc \
129 && copy xgen-gwmc diamarshal.c \
130 && del xgen-gwmc xgen-gwmc~
133 # No general LDFLAGS needed
134 LDFLAGS = /link $(LINKDEBUG)
137 CFLAGS = -I. -DHAVE_CONFIG_H
141 $(PRJ_TOP)\config.h \
146 $(PACKAGE).lib : $(OBJECTS)
147 lib /out:$(PACKAGE).lib $(OBJECTS)
149 $(PACKAGE).dll : $(OBJECTS) $(PACKAGE).def
150 $(CC) $(CFLAGS) -LD -Fe$(PACKAGE).dll $(OBJECTS) $(PKG_LINK) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:$(PACKAGE).def
152 $(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
153 copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h
156 $(CC) $(CFLAGS) -c $(PKG_CFLAGS) $<
159 sp -weak $(PKG_CFLAGS) *.c >sp.log