Added "embed/unembed all components/schematics" functionality to gschlas
[geda-gaf/peter-b.git] / libgeda / src / Makefile.am
blob8b25c23f7eb5b116339861154e84d3132fdfd747
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 if CCISGCC
9 AM_CFLAGS = -Wall
10 endif
12 # Build a libtool library, libhello.la for installation in libdir.
13 lib_LTLIBRARIES = libgeda.la
15 libgeda_la_SOURCES = \
16         a_basic.c f_basic.c f_print.c f_image.c g_basic.c m_basic.c \
17         o_arc_basic.c o_attrib.c o_basic.c o_box_basic.c \
18         o_circle_basic.c o_complex_basic.c o_line_basic.c o_list.c \
19         o_net_basic.c o_selection.c o_bus_basic.c o_text_basic.c \
20         o_pin_basic.c o_image.c o_embed.c \
21         u_basic.c s_attrib.c s_basic.c \
22         s_clib.c s_encoding.c s_hierarchy.c s_papersizes.c s_stretch.c \
23         s_log.c \
24         s_page.c s_slib.c s_color.c s_undo.c s_conn.c \
25         s_cue.c s_tile.c s_menu.c s_toplevel.c g_smob.c libgeda.c \
26         g_register.c g_rc.c i_vars.c o_picture.c gdk-pixbuf-hacks.c
28 INCLUDES = -I$(top_srcdir)/include @LIBGEDA_CFLAGS@
29 libgeda_la_LDFLAGS = @LIBTOOL_FLAGS@ @LIBGEDA_LDFLAGS@
31 EXTRA_DIST = create_proto 
33 src: $(libgeda_la_SOURCES)
34         @echo Finished building the C source
36 CPROTO =        cproto
37 CPROTOCFLAGS =  $(INCLUDES) -I. -I.. -I../include
38 ALES_HACK =     -D__GNUC__
40 proto: prototype.h
42 prototype.h: $(libgeda_la_SOURCES)
43         $(CPROTO) $(ALES_HACK) $(CPROTOCFLAGS) *.c > new_proto
44         mv new_proto ../include/prototype.h
47 MOSTLYCLEANFILES = *.log core FILE *~ prototype.bak
48 CLEANFILES = *.log core FILE *~ prototype.bak
49 DISTCLEANFILES = *.log core FILE *~ prototype.bak
50 MAINTAINERCLEANFILES = *.log core FILE *~ prototype.bak prototype.h \
51                         Makefile.in configure
53 # Unfortunately, in order to test libtool thoroughly, we need access
54 # to its private directory.
55 objdir = `sed -n -e 's/^objdir=\"\(.*\)\"$$/\1/p' ./libtool`