|
|
1.1 root 1: #
2: # Makefile for Floating Point Preprocessor
3: # For machines without floating point hardware
4: # SEE FIS SELECT OPTION BELOW
5: #
6: # Fpp is called with the -F option to 11cc, using ./fpp
7: # Programs which call this must have the F library [11libF.a]
8: # linked in with them {included here}
9: #
10: # The Standard C library should be remade with the -F option, too,
11: # so as not to use floating point instructions, and called
12: # 11libFc.a
13: #
14: LIBDIR = /lib
15:
16: FPP = fpp
17: FLIB = 11libF.a
18:
19: CC = cc
20: AR = ar
21: CC11 = 11cc
22: AS11 = 11as
23: RANLIB11 = 11ranlib
24:
25: CFLAGS = -O
26:
27: # If you have FIS {floating instruction set}, set RHFLIB = rhflibFIS
28: # If you do not, set RHFLIB = rhflibNOFIS
29: #
30: RHFLIB = rhflibNOFIS
31:
32: #
33: # LIBFILES = rhmath.o rhprintf.o rhpfloat.o rhftoa1.o mmatof.o \
34: # rhflib1.o rhflibu.o rhflib.o format.o ilongops.o
35:
36: # god: these are (I believe) the minimum basic requirements for
37: # using fpp. The other files have junk like math routines
38: # and use an old printf. The math routines are
39: # probably better than the standard libc ones, but it is better
40: # to use the standard atof and print.c
41: #
42: LIBFILES = rhpfloat.o rhflib1.o rhflibu.o rhflib.o ilongops.o
43:
44: # Default for making libraries is the PDP11 C compiler and Assembler
45: %.o: %.c
46: ${CC11} -O -tf -B./ -F -c $%.c
47: %.o: %.s
48: ${AS11} -o $%.o $%.s
49:
50: all: ${FPP} ${FLIB} # must make fpp first
51: @echo \`all\' is up to date: $?
52:
53: # Of course, the floating point preprocessor is VAX executable
54: #
55: ${FPP}: fpp.o rhccomp.o rhsymtab.o
56: ${CC} ${CFLAGS} fpp.o rhccomp.o rhsymtab.o -o ${FPP}
57:
58: fpp.o: fpp.c
59: ${CC} ${CFLAGS} -c fpp.c
60:
61: rhccomp.o: rhccomp.c
62: ${CC} ${CFLAGS} -c rhccomp.c
63:
64: rhsymtab.o: rhsymtab.c
65: ${CC} ${CFLAGS} -c rhsymtab.c
66:
67: ${LIBDIR}/${FPP}: ${FPP}
68: cp ${FPP} ${LIBDIR}
69: strip ${LIBDIR}/${FPP}
70:
71: inst${FPP}: ${LIBDIR}/${FPP}
72:
73: rhflib.o: ${RHFLIB}.s
74: cp ${RHFLIB}.s rhflib.s
75: ${AS11} -o rhflib.o rhflib.s
76:
77: ${FLIB}: ${LIBFILES}
78:
79: ${LIBDIR}/${FLIB}: ${LIBFILES}
80: chmod 644 $?
81: ${AR} ru ${LIBDIR}/${FLIB} $?
82: ${RANLIB11} ${LIBDIR}/${FLIB}
83: chmod 644 ${LIBDIR}/${FLIB}
84:
85: inst${FLIB}: ${LIBDIR}/${FLIB}
86:
87: install: inst${FPP} inst${FLIB}
88: @echo ${FPP} and ${FLIB} are installed
89:
90: clean:
91: rm -f *.o make.out
92: rm -f *.o make.out ${FPP} ${FLIB}
93:
94: print:
95: @-pr -r README NOTE makefile *.c *.s
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.