-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile.unx
42 lines (27 loc) · 822 Bytes
/
Makefile.unx
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
# Makefile for GNU Make on Linux (32 or 64 bit)
# compile for 32 bit machine (works on 64 bit machines too)
#M32 = -m32
LAST_UPDATE_YEAR = 2021
LAST_UPDATE_MONTH = 1
LAST_UPDATE_DAY = 1
# Set defaults
PARMS = -DCELLS=100000 -DATOMS=3000 -DSTACK=1500 -DARRAY=5000
OPT = -O3
#OPT = -g -Og
CFLAGS = -Dstricmp=strcasecmp $(OPT) $(M32) $(PARMS) -DYEAR=$(LAST_UPDATE_YEAR) -DMONTH=$(LAST_UPDATE_MONTH) -DDAY=$(LAST_UPDATE_DAY)
.f.c:
f2c -onetrip -A -h $<
basic.img : bare.img script.2
./lispf4 bare.img <script.2
bare.img : lispf4 SYSATOMS script.1
./lispf4 -x <script.1
lispf4 : lispf41.o lispf42.o auxillary.o
gcc -o $@ $(M32) $(OPT) $^ -lm
#lispf41.c : lispf41.f
# f2c -onetrip -A -h $<
#lispf42.c : lispf42.f
# f2c -onetrip -A -h -E $<
clean:
rm -f *~ *.o core *.bak
realclean: clean
rm -f lispf4 *.img