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
6 AUTOMAKE_OPTIONS = foreign
8 DEBUG_CPPFLAGS = -DGEDA_DEBUG=0
10 AM_CFLAGS = $(LIBGEDA_CFLAGS)
16 # Build a libtool library, libhello.la for installation in libdir.
17 lib_LTLIBRARIES = libgeda.la
19 libgeda_la_SOURCES = \
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
87 CPROTOCFLAGS = $(INCLUDES) -I. -I.. -I../include
88 ALES_HACK = -D__GNUC__
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`