1 |
greg |
1.1 |
# RCSid: $Id$ |
2 |
|
|
# |
3 |
|
|
# Compiles for calc, rcalc, ev, and utilities |
4 |
|
|
# |
5 |
|
|
|
6 |
|
|
OPT = -O |
7 |
|
|
|
8 |
|
|
CC = cc |
9 |
|
|
|
10 |
|
|
MACH = -DIEEE |
11 |
|
|
|
12 |
|
|
DEFS = -DBIGGERLIB |
13 |
|
|
|
14 |
|
|
CFLAGS = $(OPT) $(MACH) $(DEFS) -I../common -L../lib |
15 |
|
|
|
16 |
|
|
MLIB = -lm |
17 |
|
|
|
18 |
|
|
INSTDIR = /usr/local/bin |
19 |
|
|
|
20 |
|
|
PROGS = calc ev rcalc total cnt neat lam tabfunc histo |
21 |
|
|
|
22 |
|
|
all: $(PROGS) |
23 |
|
|
|
24 |
|
|
install: $(PROGS) |
25 |
|
|
cp $(PROGS) $(INSTDIR) |
26 |
|
|
|
27 |
|
|
clean: |
28 |
|
|
set nonomatch; rm -f *.o $(PROGS) |
29 |
|
|
|
30 |
|
|
calc: calc.o |
31 |
|
|
$(CC) $(CFLAGS) -o calc calc.o -lrt $(MLIB) |
32 |
|
|
|
33 |
|
|
ev: ev.o |
34 |
|
|
$(CC) $(CFLAGS) -o ev ev.o -lrt $(MLIB) |
35 |
|
|
|
36 |
|
|
rcalc: rcalc.o |
37 |
|
|
$(CC) $(CFLAGS) -o rcalc rcalc.o -lrt $(MLIB) |
38 |
|
|
|
39 |
|
|
total: total.o |
40 |
|
|
$(CC) $(CFLAGS) -o total total.o $(MLIB) |
41 |
|
|
|
42 |
|
|
cnt: cnt.o |
43 |
|
|
$(CC) $(CFLAGS) -o cnt cnt.o |
44 |
|
|
|
45 |
|
|
neat: neat.o |
46 |
|
|
$(CC) $(CFLAGS) -o neat neat.o |
47 |
|
|
|
48 |
|
|
lam: lam.o |
49 |
|
|
$(CC) $(CFLAGS) -o lam lam.o |
50 |
|
|
|
51 |
|
|
tabfunc: tabfunc.o |
52 |
|
|
$(CC) $(CFLAGS) -o tabfunc tabfunc.o -lrt $(MLIB) |
53 |
|
|
|
54 |
|
|
histo: histo.o |
55 |
|
|
$(CC) $(CFLAGS) -o histo histo.o $(MLIB) |
56 |
|
|
|
57 |
|
|
calc.o ev.o rcalc.o: ../common/calcomp.h |