-
Notifications
You must be signed in to change notification settings - Fork 11
/
makefile
40 lines (30 loc) · 987 Bytes
/
makefile
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
# Asterisk for supporting long cmdlines in raw DOS (via env. var.)
# (only supported by certain OW tools). Run "whelp tools" for more.
CC=wcc
CLINK=*wcl
LDFLAGS=
LDLIBS=
UPX=upx
UPXFLAGS=-qq --ultra-brute --8086
CFLAGS=-wx -0 -mc -fpc -zp1
# -wx warnall
# -0 8086 compat
# due to size of message catalogs, large data is needed if compile with kitten
# -ms small memory model / -mc compact memory model for large data
# -fpc floating point library calls (no FPU)
# -zp1 byte-align structures
OBJS=createfs.obj floppy.obj hdisk.obj main.obj &
savefs.obj bcread.obj prf.obj userint.obj &
driveio.obj getopt.obj init.obj recordbc.obj &
uformat.obj msghlpr.obj kitten.obj
pack: format.exe .SYMBOLIC
$(UPX) $(UPXFLAGS) $<
format.exe: $(OBJS)
$(CLINK) $(CFLAGS) $(LDFLAGS) $< $(LDLIBS) -fe=$@
.c.obj: kitten.h
$(CC) $(CFLAGS) $*.c
# rm is built-in to wmake
clean: .SYMBOLIC
rm *.obj
clobber: .SYMBOLIC
rm -f *.bak *.dsk *.exe *.obj *.swp *.map *.err