1 ## Process this file with automake to produce Makefile.in
4 bc_SOURCES = main.c bc.y scan.l execute.c load.c storage.c util.c global.c
6 EXTRA_DIST = bc.h fix-libmath_h libmath.b sbc.y
7 noinst_HEADERS = libmath.h
9 DISTCLEANFILES = sbc sbc.c sbc.h
10 MAINTAINERCLEANFILES = libmath.h bc.c bc.h
12 datadir = $(prefix)/@DATADIRNAME@
14 INCLUDES = -I$(srcdir) -I$(srcdir)/../h
15 LDADD = ../lib/libbc.a @LEXLIB@
25 ./fbc -c $(srcdir)/libmath.b </dev/null >libmath.h
26 $(srcdir)/fix-libmath_h
30 if grep -s "define BC_MATH_FILE" ../config.h; \
31 then $(mkinstalldirs) $(libdir); \
32 rm -f $(libdir)/libmath.b; \
33 $(INSTALL_DATA) $(srcdir)/libmath.b $(libdir); \
34 chmod 444 $(libdir)/libmath.b; \
38 fbcOBJ = main.o bc.o scan.o execute.o global.o load.o storage.o util.o
40 $(LINK) $(fbcOBJ) $(LDADD) $(LIBS)
43 sbcOBJ = main.o sbc.o scan.o execute.o global.o load.o storage.o util.o
46 $(LINK) $(sbcOBJ) $(LDADD) $(LIBS)