re-adding .pngs as binary
[dia.git] / app / Makefile.am
blob78403d140d9f2d2e2e850ab512e0e320487ac685
1 ## Process this file with automake to produce Makefile.in
3 INCLUDES = \
4         -I$(top_srcdir) \
5         -I$(top_srcdir)/intl \
6         -I$(top_srcdir)/lib \
7         $(DEBUG_FLAGS) \
8         $(XML_CFLAGS) \
9         $(GTK_CFLAGS) \
10         $(GNOME_CFLAGS) \
11         $(LIBART_CFLAGS) \
12         $(GDK_PIXBUF_CFLAGS) \
13         $(UNICODE_CFLAGS) \
14         $(FREETYPE_CFLAGS) \
15         -DLOCALEDIR=\"$(localedir)\"
17 if HAVE_GNOME_PRINT
18 print_files = \
19         render_gnomeprint.c \
20         render_gnomeprint.h \
21         paginate_gnomeprint.c \
22         paginate_gnomeprint.h
23 embed_extra_print_files =
24 else
25 print_files = \
26         paginate_psprint.c \
27         paginate_psprint.h
28 embed_extra_print_files = \
29         render_gnomeprint.c \
30         render_gnomeprint.h
31 endif
33 noinst_PROGRAMS = run_dia.sh run_diaconv.sh diaconv
34 run_dia_sh_SOURCES = 
35 run_diaconv_sh_SOURCES = 
37 if HAVE_BONOBO
38 dia_embedd = dia-embedd
39 dia_oafinfo = GNOME_Dia.oaf
40 else
41 dia_embedd =
42 dia_oafinfo =
43 endif
45 bin_PROGRAMS = dia $(dia_embedd)
47 oafinfodir = $(datadir)/oaf
48 oafinfo_DATA = $(dia_oafinfo)
50 dia_core_files = \
51             diagram.c \
52             diagram.h \
53             preferences.c \
54             preferences.h \
55             load_save.c \
56             load_save.h \
57             group.c \
58             group.h \
59             properties.c \
60             properties.h \
61             defaults.c \
62             defaults.h \
63             render_eps.c \
64             render_eps.h \
65             render_libart.c \
66             render_libart.h \
67             undo.c \
68             undo.h \
69             object_ops.c \
70             object_ops.h \
71             layer_dialog.c \
72             layer_dialog.h \
73             export_png.c \
74             commands.c \
75             commands.h \
76             app_procs.c \
77             app_procs.h \
78             connectionpoint_ops.h \
79             connectionpoint_ops.c \
80             disp_callbacks.c \
81             disp_callbacks.h \
82             display.c \
83             display.h \
84             select.c \
85             select.h \
86             color_area.c \
87             color_area.h \
88             linewidth_area.c \
89             linewidth_area.h \
90             lineprops_area.c \
91             lineprops_area.h \
92             grid.c \
93             grid.h \
94             handle_ops.c \
95             handle_ops.h \
96             interface.c \
97             interface.h \
98             modify_tool.c \
99             modify_tool.h \
100             scroll_tool.c \
101             scroll_tool.h \
102             create_object.c \
103             create_object.h \
104             magnify.c \
105             magnify.h \
106             menus.c \
107             menus.h \
108             cut_n_paste.c \
109             cut_n_paste.h \
110             render_gdk.c \
111             render_gdk.h \
112             tool.c \
113             tool.h \
114             pixmaps.h \
115             diapagelayout.c \
116             diapagelayout.h \
117             diaunitspinner.c \
118             diaunitspinner.h \
119             pagesetup.c \
120             pagesetup.h \
121             filedlg.c \
122             filedlg.h \
123             plugin-manager.c \
124             plugin-manager.h \
125             dia-props.c \
126             dia-props.h \
127             gtkwrapbox.h \
128             gtkwrapbox.c \
129             gtkhwrapbox.h \
130             gtkhwrapbox.c \
131             gtkvwrapbox.h \
132             gtkvwrapbox.c \
133             cursor.c \
134             cursor.h \
135             splash.c \
136             recent_files.h \
137             recent_files.c \
138             diagram_tree.h \
139             diagram_tree.c \
140             diagram_tree_window.h \
141             diagram_tree_window.c \
142             diagram_tree_menu.h \
143             diagram_tree_menu.c \
144             diagram_tree_menu_callbacks.h \
145             diagram_tree_menu_callbacks.c \
146             render_pixmap.h \
147             render_pixmap.c \
148             sheets.c \
149             sheets.h \
150             sheets_dialog.c \
151             sheets_dialog.h \
152             sheets_dialog_callbacks.c \
153             sheets_dialog_callbacks.h \
154             dialogs.c \
155             dialogs.h \
156             $(print_files)
158 dia_SOURCES = \
159             $(dia_core_files) \
160             main.c 
162 diaconv_SOURCES = \
163         $(dia_core_files) \
164         diaconv.c
166 EFENCE =
168 dia_LDADD = ../lib/libdia.a \
169         $(EFENCE) \
170         $(APP_LIBS) $(XML_LIBS) $(GTK_LIBS) $(GNOME_LIBS) \
171         $(LIBART_LIBS) $(PNG_LIBS) $(GDK_PIXBUF_LIBS) $(FREETYPE_LIBS) \
172         $(UNICODE_LIBS)  $(INTLLIBS) $(INTLOBJS)
174 diaconv_LDADD = ../lib/libdia.a \
175         $(EFENCE) \
176         $(APP_LIBS) $(XML_LIBS) $(GTK_LIBS) $(GNOME_LIBS) \
177         $(LIBART_LIBS) $(PNG_LIBS) $(GDK_PIXBUF_LIBS) $(FREETYPE_LIBS) \
178         $(UNICODE_LIBS) $(INTLLIBS) $(INTLOBJS)
180 ## Bonobo embeddable dia. Commented out, because it's a bit raw.
181 ## Especially the configure/make parts.
183 dia_embedd_SOURCES = \
184             $(dia_core_files) \
185             $(embed_extra_print_files) \
186             dia_embedd.c
188 dia_embedd_LDADD = ../lib/libdia.a \
189         $(EFENCE) \
190         $(APP_LIBS) $(XML_LIBS) $(BONOBO_LIBS) \
191         $(LIBART_LIBS) $(PNG_LIBS) $(GDK_PIXBUF_LIBS) $(INTLLIBS) \
192         $(FREETYPE_LIBS) $(UNICODE_LIBS)
194 LDFLAGS = -export-dynamic
196 EXTRA_DIST = \
197         GNOME_Dia.oaf \
198         render_gnomeprint.c \
199         render_gnomeprint.h \
200         paginate_gnomeprint.c \
201         paginate_gnomeprint.h \
202         paginate_psprint.c \
203         paginate_psprint.h \
204         paginate_gdiprint.cpp \
205         paginate_gdiprint.h \
206         win32print.c \
207         win32print.h \
208         winmain.c \
209         makefile.msc \
210         pixmaps/arrow.xpm \
211         pixmaps/default.xpm \
212         pixmaps/delete.xpm \
213         pixmaps/eye.xbm \
214         pixmaps/hand-open-data.xbm \
215         pixmaps/hand-open-mask.xbm \
216         pixmaps/hand-closed-data.xbm \
217         pixmaps/hand-closed-mask.xbm \
218         pixmaps/landscape.xpm \
219         pixmaps/line_break.xpm \
220         pixmaps/lower.xpm \
221         pixmaps/magnify.xpm \
222         pixmaps/magnify-plus-data.xbm \
223         pixmaps/magnify-plus-mask.xbm \
224         pixmaps/magnify-minus-data.xbm \
225         pixmaps/magnify-minus-mask.xbm \
226         pixmaps/n_a.xpm \
227         pixmaps/new.xpm \
228         pixmaps/portrait.xpm \
229         pixmaps/raise.xpm \
230         pixmaps/scroll.xpm \
231         pixmaps/snap-to-grid.xpm \
232         pixmaps/snap-to-grid-mask.xpm \
233         pixmaps/swap.xpm
235 run_dia.sh: Makefile.am
236         echo "#!$(SHELL) " > run_dia.sh
237         echo "export DIA_LIB_PATH DIA_SHAPE_PATH DIA_INT_SHAPE_PATH DIA_SHEET_PATH" >> run_dia.sh
238         echo DIA_LIB_PATH=`pwd`/../objects//:`pwd`/../plug-ins// >> run_dia.sh
239         echo DIA_SHAPE_PATH=`pwd`/../shapes >> run_dia.sh
240         echo DIA_INT_SHAPE_PATH=`pwd`/../objects >> run_dia.sh
241         echo DIA_SHEET_PATH=`pwd`/../sheets >> run_dia.sh
242         echo >> run_dia.sh
243         echo "\$$DEBUGGER `pwd`/dia \$$*" >> run_dia.sh
244         chmod a+x run_dia.sh
246 run_diaconv.sh: run_dia.sh
247         cat run_dia.sh | sed -e "s%`pwd`/dia%`pwd`/diaconv%g" >run_diaconv.sh 
248         chmod a+x run_diaconv.sh