More honesty about bug 144394, it's not quite fixed yet.
[dia.git] / lib / makefile.msc
blob370a089bc159b154dd3f51cc1aaaae8529890ce9
1 TOP = ..\..
2 PRJ_TOP = ..
3 PACKAGE = libdia
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 \
11 PKG_CFLAGS = \
12         -I.. \
13         $(GTK2_CFLAGS) \
14         $(LIBXML2_CFLAGS) \
15         $(ZLIB_CFLAGS) \
16 !IFDEF USEFT2
17         -DHAVE_FREETYPE $(FREETYPE2_CFLAGS) \
18 !ENDIF
19         -DHAVE_LIBART $(LIBART_CFLAGS) \
20         -DLIBDIA_COMPILATION
22 # in GTK_CFLAGS: $(GLIB_CFLAGS) 
24 PKG_LINK = $(GTK2_LIBS)  $(PANGOWIN32_LIBS) $(GLIB_LIBS) \
25 !IFDEF USEFT2
26         $(PANGOFT2_LIBS) \
27 !ENDIF
28         $(LIBXML2_LIBS) $(ZLIB_LIBS) \
29         $(LIBART_LIBS) $(GDK_PIXBUF_LIBS) \
30         $(INTL_LIBS)
32 ICON_PNG_PAIRS = \
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.
39 dia-lib-icons.h:
40         gdk-pixbuf-csource --build-list \
41         $(ICON_PNG_PAIRS) > dia-lib-icons.h
43 OBJECTS = \
44         autoroute.obj \
45         arrows.obj \
46         attributes.obj \
47         bezier_conn.obj \
48         beziershape.obj \
49         boundingbox.obj \
50         color.obj \
51         connection.obj \
52         connectionpoint.obj \
53         connpoint_line.obj \
54         create.obj \
55         debug.obj \
56         diaarrowchooser.obj \
57         dialinechooser.obj \
58         diatransform.obj \
59         dia_dirs.obj \
60         dia_image.obj \
61         dia_svg.obj \
62         dia_xml.obj \
63         diaerror.obj \
64         diagramdata.obj \
65         diagdkrenderer.obj \
66         diagtkfontsel.obj \
67         diainteractiverenderer.obj \
68         dialibartrenderer.obj \
69         diarenderer.obj \
70         diasvgrenderer.obj \
71         dynamic_obj.obj \
72         element.obj \
73         filter.obj \
74         focus.obj \
75         font.obj \
76         geometry.obj \
77         group.obj \
78         intl.obj \
79         message.obj \
80         neworth_conn.obj \
81         objchange.obj \
82         object.obj \
83         object_defaults.obj \
84         orth_conn.obj \
85         paper.obj \
86         parent.obj \
87         persistence.obj \
88         plug-ins.obj \
89         poly_conn.obj \
90         polyshape.obj \
91         prop_attr.obj \
92         prop_basic.obj \
93         prop_geomtypes.obj \
94         prop_inttypes.obj \
95         prop_sdarray.obj \
96         prop_text.obj \
97         prop_widgets.obj \
98         propdesc.obj \
99         propdialogs.obj  \
100         properties.obj \
101         proplist.obj \
102         propobject.obj \
103         propoffsets.obj \
104         propregistry.obj \
105         ps-utf8.obj \
106         render_pixmap.obj \
107         sheet.obj \
108         text.obj \
109         textline.obj \
110         utils.obj \
111         widgets.obj \
112         diamarshal.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)
135 INSTALL = copy
137 CFLAGS = -I. -DHAVE_CONFIG_H
139 ## targets
140 all : \
141         $(PRJ_TOP)\config.h \
142         dia-lib-icons.h \
143         diamarshal.c \
144         $(PACKAGE).dll
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
155 .c.obj :
156         $(CC) $(CFLAGS) -c $(PKG_CFLAGS) $<
158 splint :
159         sp -weak $(PKG_CFLAGS) *.c >sp.log
160