libgeda: Remove some exit() calls and assertions.
[geda-gaf/peter-b.git] / libgeda / src / Makefile.am
blobc65c9795c44db712e61d54b5bde155f8cf004caa
2 # Build a libtool library for installation in libdir.
3 lib_LTLIBRARIES = libgeda.la
5 BUILT_SOURCES = \
6         scheme_init.x \
7         scheme_smob.x \
8         scheme_toplevel.x \
9         scheme_object.x \
10         scheme_complex.x \
11         scheme_page.x \
12         scheme_attrib.x \
13         scheme_os.x \
14         scheme_deprecated.x
16 scheme_api_sources = \
17         scheme_init.c \
18         scheme_smob.c \
19         scheme_toplevel.c \
20         scheme_object.c \
21         scheme_complex.c \
22         scheme_os.c \
23         scheme_page.c \
24         scheme_attrib.c \
25         scheme_deprecated.c
27 libgeda_la_SOURCES = \
28         $(scheme_api_sources) \
29         a_basic.c \
30         edaerrors.c \
31         f_basic.c \
32         f_print.c \
33         g_basic.c \
34         geda_list.c \
35         g_rc.c \
36         g_register.c \
37         i_vars.c \
38         libgeda.c \
39         m_basic.c \
40         m_bounds.c \
41         m_box.c \
42         m_circle.c \
43         m_hatch.c \
44         m_line.c \
45         m_polygon.c \
46         m_transform.c \
47         o_arc_basic.c \
48         o_attrib.c \
49         o_basic.c \
50         o_box_basic.c \
51         o_bus_basic.c \
52         o_circle_basic.c \
53         o_complex_basic.c \
54         o_embed.c \
55         o_line_basic.c \
56         o_list.c \
57         o_net_basic.c \
58         o_path_basic.c \
59         o_picture.c \
60         o_pin_basic.c \
61         o_selection.c \
62         o_text_basic.c \
63         s_attrib.c \
64         s_basic.c \
65         s_clib.c \
66         s_color.c \
67         s_conn.c \
68         s_cue.c \
69         s_encoding.c \
70         s_hierarchy.c \
71         s_log.c \
72         s_menu.c \
73         s_page.c \
74         s_papersizes.c \
75         s_path.c \
76         s_slib.c \
77         s_slot.c \
78         s_textbuffer.c \
79         s_tile.c \
80         s_toplevel.c \
81         s_undo.c \
82         s_weakref.c \
83         u_basic.c
85 libgeda_la_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"  $(DATADIR_DEFS) \
86         -I$(srcdir)/../include -I$(srcdir)/../include/libgeda -I$(top_srcdir)
87 libgeda_la_CFLAGS = \
88         $(GCC_CFLAGS) $(MINGW_CFLAGS) $(GUILE_CFLAGS) $(GLIB_CFLAGS) \
89         $(GDK_PIXBUF_CFLAGS)
90 libgeda_la_LDFLAGS = -version-info $(LIBGEDA_SHLIB_VERSION) \
91         $(WINDOWS_LIBTOOL_FLAGS) $(MINGW_LDFLAGS) $(GUILE_LIBS) \
92         $(GLIB_LIBS) $(GDK_PIXBUF_LIBS)
93 LIBTOOL=@LIBTOOL@ --silent
95 # This is used to generate boilerplate for defining Scheme functions
96 # in C.
97 SUFFIXES = .x
98 snarf_cpp_opts = $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
99         $(libgeda_la_CPPFLAGS) $(AM_CFLAGS) $(libgeda_la_CFLAGS)
100 .c.x:
101         CPP="$(CPP)" $(GUILE_SNARF) -o $@ $< $(snarf_cpp_opts)
103 MOSTLYCLEANFILES = *.log core FILE *~
104 CLEANFILES = *.log core FILE *~ $(BUILT_SOURCES)
105 DISTCLEANFILES = *.log core FILE *~
106 MAINTAINERCLEANFILES = *.log core FILE *~ Makefile.in
108 # Unfortunately, in order to test libtool thoroughly, we need access
109 # to its private directory.
110 objdir = `sed -n -e 's/^objdir=\"\(.*\)\"$$/\1/p' ./libtool`