summaryrefslogtreecommitdiff
path: root/lib/Makefile.am
blob: 6f74b4dfee1fed0493c50fd89d25acd20d976657 (plain)
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
## Process this file with automake to produce Makefile.in
noinst_LIBRARIES = libbc.a

INCLUDES = -I. -I.. -I$(srcdir)/../h

libbc_a_SOURCES = getopt.c getopt1.c vfprintf.c number.c

DEFS = @DEFS@ $(DEFSADD)

CFLAGS = @CFLAGS@ -Wall -funsigned-char

MAINTAINERCLEANFILES = Makefile.in number.c

newnumber.o: number.c muldigits.h
	$(CC) $(CFLAGS) $(INCLUDES) -c -DMULDIGITS -o newnumber.o $(srcdir)/number.c

muldigits.h: testmul
	@echo "The following may take up to 10 minutes."
	testmul > muldigits.h

testmul: testmul.o number.o
	$(CC) $(CFLAGS) -o testmul testmul.o number.o

specialnumber: newnumber.o
	cp newnumber.o number.o