-
Notifications
You must be signed in to change notification settings - Fork 0
/
MAKEFILE.UNX
171 lines (128 loc) · 3.35 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# Unix Makefile for Freyja2
PROGS = freyja makeexm moon thorabk thorpbk thorres
all: $(PROGS)
LIB = lib.o libparse.o libreade.o libres.o xprintf.o
H = lib.h
FH = freyja.h frres.h $(H)
FCORE = fbuf.o fcalc.o fchar.o fdate.o fdisplay.o ffile.o fkey.o fmisc.o fregion.o ftable.o fterm.o fwhite.o fword.o
FXLINK = -lm -ggdb2
CURSES = -lcurses -ltermcap
CC = gcc
CFLAGS = -O -ggdb2
# --------------------------------------------------
freyja.ri: thorres freyja.res rpage000.res rlangen.res
./thorres -c 000 -l en -f u freyja.res -h frres.h
# --------------------------------------------------
newri: thorres freyja.res rpage000.res rlangen.res
./thorres -c 000 -l en -f u freyja.res -h frres.h -new
# --------------------------------------------------
# see lots out output: for testing thorres
newriv: thorres freyja.res rpage000.res rlangen.res
./thorres -c 000 -l en -f u freyja.res -h frres.h -new -v -gc -gl
# --------------------------------------------------
freyja: freyja.ri freyja.o $(FCORE) $(LIB)
$(CC) freyja.o $(FCORE) $(LIB) $(CURSES) $(FXLINK) -o freyja
freyja.o: $(FH)
$(CC) -c $(CFLAGS) -DMAIN freyja.c
$(FCORE): $(FH)
# --------------------------------------------------
makeexm: makeexm.o $(LIB)
$(CC) makeexm.o $(LIB) -lm -o makeexm
makeexm.o: $(H)
# --------------------------------------------------
moon: moon.o $(LIB)
$(CC) moon.o $(LIB) -lm -o moon
moon.o: $(H)
# --------------------------------------------------
thorabk: thorabk.o $(LIB)
$(CC) thorabk.o $(LIB) -o thorabk
thorabk.o: $(H)
# --------------------------------------------------
thorpbk: thorpbk.o $(LIB)
$(CC) thorpbk.o $(LIB) -o thorpbk
thorpbk.o: $(H)
# --------------------------------------------------
thorres: thorres.o $(LIB)
$(CC) thorres.o $(LIB) -o thorres
thorres.o: $(H)
# --------------------------------------------------
$(LIB): $(H)
# --------------------------------------------------
disk:
mcopy -t `cat filelist` a:
mcopy -n *.exe *.exm *.icn *.ri a:
fromdisk:
mcopy -t a:\* .
mv readme README
mcopy -n a:\*.exe .
mcopy -n a:\*.exm .
mcopy -n a:\*.icn .
mcopy -n a:\*.ri .
cleanup:
rm -f *.o
cleanall:
rm -f *.o $(PROGS) *.ri
distrib:
tar cvf freyja23.tar `cat filelist`
gzip -v <freyja23.tar >freyja23.tar.gz
# --------------------------------------------------
small:
mkdir small
cp \
README \
copying.doc \
fcalc.doc \
fcmdlist.doc \
fcmdxref.doc \
filelist \
filelist.doc \
fmenus.doc \
freyja.doc \
freyja.exe \
freyja.exm \
freyja.icn \
freyja.res \
frres.h \
fsf.doc \
ftutoria.doc \
indos100.doc \
indos100.ri \
indos95.doc \
indos95.ri \
inibmpc.doc \
inibmpc.ri \
insys100.doc \
insys100.ri \
insys95.doc \
insys95.ri \
inunix.doc \
league.doc \
makeexm.doc \
makeexm.exe \
memutil.doc \
memutil.exm \
memutil.icn \
moon.doc \
moon.exe \
resource.doc \
rlangdk.res \
rlangen.res \
rpage000.res \
rpage437.res \
rpage850.res \
rpage852.res \
rpage865.res \
rpagebeg.res \
thorabk.doc \
thorabk.exe \
thorpbk.doc \
thorpbk.exe \
thorres.doc \
thorres.exe \
warranty.doc \
small
cd small
tar cvf ../freyj23s.tar .
cd ..
rm -R small
gzip -v <freyj23s.tar >freyj23s.tar.gz