File: Makefile.am

package info (click to toggle)
bc 1.07.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,500 kB
  • sloc: ansic: 7,596; sh: 1,468; yacc: 1,110; lex: 342; makefile: 91
file content (48 lines) | stat: -rw-r--r-- 1,350 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
## Process this file with automake to produce Makefile.in
bin_PROGRAMS = bc

bc_SOURCES = main.c bc.y scan.l execute.c load.c storage.c util.c global.c \
	     warranty.c

EXTRA_DIST = bc.h bcdefs.h const.h fix-libmath_h global.h libmath.b proto.h \
             sbc.y
noinst_HEADERS = libmath.h

DISTCLEANFILES = sbc sbc.c sbc.h libmath.h global_foo.c

MAINTAINERCLEANFILES = Makefile.in bc.c bc.h scan.c \
	bc.y bcdefs.h const.h execute.c fix-libmath_h \
	global.c global.h libmath.b load.c main.c \
	proto.h scan.l storage.c util.c

AM_CPPFLAGS = -I$(srcdir) -I$(srcdir)/../h
LIBBC = ../lib/libbc.a
LIBL = @LEXLIB@
LDADD = $(LIBBC) $(LIBL) @READLINELIB@

AM_YFLAGS = -d

AM_CFLAGS = @CFLAGS@

$(PROGRAMS): libmath.h $(LIBBC)

scan.o: bc.h
global.o: libmath.h
global_foo.c: global.c
	cp -a global.c global_foo.c

fbcOBJ = main.o bc.o scan.o execute.o load.o storage.o util.o warranty.o

libmath.h: libmath.b $(fbcOBJ) $(LIBBC)
	echo '{0}' > libmath.h
	$(MAKE) global_foo.o
	$(LINK) -o fbc $(fbcOBJ) global_foo.o $(LIBBC) $(LIBL) $(READLINELIB) $(LIBS)
	./fbc -c $(srcdir)/libmath.b </dev/null >libmath.h
	$(srcdir)/fix-libmath_h
	rm -f ./fbc ./global_foo.o

sbcOBJ = main.o sbc.o scan.o execute.o global.o load.o storage.o util.o \
         warranty.o
sbc.o: sbc.c
sbc: $(sbcOBJ) $(LIBBC)
	$(LINK) $(sbcOBJ) $(LIBBC) $(LIBL) $(READLINELIB) $(LIBS)