* lib/text.h: Added text_get_line() declaration
[dia.git] / lib / makefile.mingw
blob0fe9d79241cc73393865f4a3c99d79848a1dddca
1 # Makefile for mingw (with gnu make, but without bash), use :
2 # make -f makefile.mingw
4 TOP = ../..
5 PRJ_TOP = ..
6 PACKAGE = libdia
7 include $(TOP)/glib/build/win32/make.mingw
9 # OPTIMIZE = -g
11 PKG_CFLAGS = -I .. \
12         $(GLIB_CFLAGS) \
13         $(GTK2_CFLAGS) \
14         -DWIN32 $(LIBXML2_CFLAGS) \
15         $(ZLIB_CFLAGS) \
16         -I $(LIBART)/.. \
17         $(INTL_CFLAGS) \
18         -DLIBDIA_COMPILATION
20 # in GTK_CFLAGS: $(GLIB_CFLAGS) 
22 PKG_LINK = -lm $(GTK2_LIBS) $(GLIB_LIBS) $(PANGO_LIBS) \
23         $(LIBXML2_LIBS) $(ZLIB_LIBS) $(INTL_LIBS)
25 # Debug
26 # OPTIMIZE = -g
28 OBJECTS = \
29         arrows.o \
30         attributes.o \
31         bezier_conn.o \
32         beziershape.o \
33         boundingbox.o \
34         color.o \
35         connection.o \
36         connpoint_line.o \
37         dia_dirs.o \
38         dia_image.o \
39         dia_svg.o \
40         dia_xml.o \
41         diagramdata.o \
42         diagdkrenderer.o \
43         diagtkfontsel.o \
44         diainteractiverenderer.o \
45         dialibartrenderer.o \
46         diarenderer.o \
47         diatransform.o \
48         dynamic_obj.o \
49         element.o \
50         filter.o \
51         focus.o \
52         font.o \
53         geometry.o \
54         group.o \
55         intl.o \
56         message.o \
57         neworth_conn.o \
58         objchange.o \
59         object.o \
60         object_defaults.o \
61         orth_conn.o \
62         paper.o \
63         plug-ins.o \
64         poly_conn.o \
65         polyshape.o \
66         prop_attr.o \
67         prop_basic.o \
68         prop_geomtypes.o \
69         prop_inttypes.o \
70         prop_sdarray.o \
71         prop_text.o \
72         prop_widgets.o \
73         propdesc.o \
74         propdialogs.o  \
75         properties.o \
76         proplist.o \
77         propobject.o \
78         propoffsets.o \
79         propregistry.o \
80         ps-utf8.o \
81         sheet.o \
82         text.o \
83         utils.o \
84         widgets.o \
86 DEPCFLAGS = -I . -DHAVE_CONFIG_H $(PKG_CFLAGS)
88 ## targets
89 all : \
90         $(PRJ_TOP)/config.h \
91         $(PACKAGE).dll
93 #$(PACKAGE).lib : $(OBJECTS)
94 #       lib /out:$(PACKAGE).lib $(OBJECTS)
96 #$(PACKAGE).dll : $(OBJECTS) $(PACKAGE).def
97 #       $(CC) $(CFLAGS) -LD -Fe$(PACKAGE).dll $(OBJECTS) $(PKG_LINK) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:$(PACKAGE).def
99 # -Wl,-Map,libdia.map 
100 $(PACKAGE).dll : $(OBJECTS) $(PACKAGE).def
101         dllwrap --mno-cygwin --dllname $(PACKAGE).dll --output-exp $(PACKAGE).exp --def $(PACKAGE).def $(OBJECTS) $(PKG_LINK) -luser32 -lwsock32 -ladvapi32
103 # how to get the functions exported ??
104 #$(PACKAGE).dll : $(OBJECTS) $(PACKAGE).def
105 #       $(CC) --shared -o $(PACKAGE).dll --def $(PACKAGE).def $(OBJECTS) $(PKG_LINK) -luser32 -lwsock32 -ladvapi32 -Wl,--out-implib,$(PACKAGE).a 
107 #$(PACKAGE).dll : $(OBJECTS) $(PACKAGE).def
108 #       sh $(PRJ_TOP)/build/win32/build-dll libdia - $(OBJECTS) $(PKG_LINK) -luser32 -lwsock32 -ladvapi32
110 $(PRJ_TOP)/config.h: $(PRJ_TOP)/config.h.win32
111         copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h 
113 clean::
114         del config.h
115         del *.exe
116         del *.o
117         del *.dll
118         del *.lib
119         del *.err
120         del *.map
121         del *.sym
122         del *.exp
123         del *.lk1
124         del *.mk1
125         del *.pdb
126         del *.ilk