Expose permanent debugging code to the C compiler.
[geda-gaf/berndj.git] / libgeda / src / Makefile.am
blobb2dcf7efa40e90be5757622f6b5cab5dac5f2b00
1 # $Id$
3 # NOTE: Don't forget that in the libtool distribution, files in this
4 # directory are distributed by the demo_distfiles variable in the top
5 # level Makefile.
6 AUTOMAKE_OPTIONS = foreign
8 DEBUG_CPPFLAGS = -DGEDA_DEBUG=0
10 AM_CFLAGS = $(LIBGEDA_CFLAGS)
12 if CCISGCC
13 AM_CFLAGS += -Wall
14 endif
16 # Build a libtool library, libhello.la for installation in libdir.
17 lib_LTLIBRARIES = libgeda.la
19 libgeda_la_SOURCES = \
20         a_basic.c \
21         f_basic.c \
22         f_print.c \
23         g_basic.c \
24         gdk-pixbuf-hacks.c \
25         geda_list.c \
26         g_rc.c \
27         g_register.c \
28         g_smob.c \
29         i_vars.c \
30         libgeda.c \
31         m_basic.c \
32         m_bounds.c \
33         m_hatch.c \
34         m_polygon.c \
35         m_rtree.c \
36         m_transform.c \
37         o_arc_basic.c \
38         o_attrib.c \
39         o_basic.c \
40         o_box_basic.c \
41         o_bus_basic.c \
42         o_circle_basic.c \
43         o_complex_basic.c \
44         o_embed.c \
45         o_line_basic.c \
46         o_list.c \
47         o_net_basic.c \
48         o_path_basic.c \
49         o_picture.c \
50         o_pin_basic.c \
51         o_selection.c \
52         o_text_basic.c \
53         s_attrib.c \
54         s_basic.c \
55         s_clib.c \
56         s_color.c \
57         s_conn.c \
58         s_cue.c \
59         s_encoding.c \
60         s_factory.c \
61         s_hierarchy.c \
62         s_log.c \
63         s_menu.c \
64         s_object.c \
65         s_page.c \
66         s_papersizes.c \
67         s_path.c \
68         s_slib.c \
69         s_slot.c \
70         s_stretch.c \
71         s_textbuffer.c \
72         s_toplevel.c \
73         s_undo.c \
74         u_basic.c
76 AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/include/libgeda
77 DEFS = $(DEBUG_CPPFLAGS) -DLOCALEDIR=\"$(localedir)\" @DEFS@
78 libgeda_la_LDFLAGS = @LIBTOOL_FLAGS@ @LIBGEDA_LDFLAGS@
79 LIBTOOL=@LIBTOOL@ --silent
81 EXTRA_DIST = create_proto 
83 src: $(libgeda_la_SOURCES)
84         @echo Finished building the C source
86 CPROTO =        cproto
87 CPROTOCFLAGS =  $(INCLUDES) -I. -I.. -I../include
88 ALES_HACK =     -D__GNUC__
90 proto: prototype.h
92 prototype.h: $(libgeda_la_SOURCES)
93         $(CPROTO) $(ALES_HACK) $(CPROTOCFLAGS) *.c > new_proto
94         mv new_proto ../include/prototype.h
97 MOSTLYCLEANFILES = *.log core FILE *~ prototype.bak
98 CLEANFILES = *.log core FILE *~ prototype.bak
99 DISTCLEANFILES = *.log core FILE *~ prototype.bak
100 MAINTAINERCLEANFILES = *.log core FILE *~ prototype.bak prototype.h \
101                         Makefile.in configure
103 # Unfortunately, in order to test libtool thoroughly, we need access
104 # to its private directory.
105 objdir = `sed -n -e 's/^objdir=\"\(.*\)\"$$/\1/p' ./libtool`