forked from DavidGriffith/frotz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.tc
70 lines (58 loc) · 1.47 KB
/
Makefile.tc
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
# This file is used to build Frotz for DOS using Borland Turbo C++ 3.00.
# The resulting executable runs as a 16-bit program.
# -O or higher optimization causes problems in quetzal.c
#
CC = tcc
CFLAGS = -ml -N
TLIB = tlib
CP = copy
RM = del
RENAME = ren
BINNAME = frotz.exe
LIBRARY = frotz.lib
SOUND_DEF = -DSOUND_SUPPORT
DOS_DEF = -DMSDOS_16BIT
DEFS = $(SOUND_DEF) $(DOS_DEF)
DOS_DIR = src\dos
DOS_OBJECTS = $(DOS_DIR)\bcinit.o \
$(DOS_DIR)\bcinput.o \
$(DOS_DIR)\bcmouse.o \
$(DOS_DIR)\bcpic.o \
$(DOS_DIR)\bcsample.o \
$(DOS_DIR)\bcscreen.o \
$(DOS_DIR)\bctext.o \
$(DOS_DIR)\bcblorb.o
CORE_DIR = src\common
CORE_OBJECTS = $(CORE_DIR)\buffer.o \
$(CORE_DIR)\fastmem.o \
$(CORE_DIR)\files.o \
$(CORE_DIR)\getopt.o \
$(CORE_DIR)\hotkey.o \
$(CORE_DIR)\input.o \
$(CORE_DIR)\main.o \
$(CORE_DIR)\math.o \
$(CORE_DIR)\object.o \
$(CORE_DIR)\process.o \
$(CORE_DIR)\random.o \
$(CORE_DIR)\redirect.o \
$(CORE_DIR)\screen.o \
$(CORE_DIR)\sound.o \
$(CORE_DIR)\stream.o \
$(CORE_DIR)\table.o \
$(CORE_DIR)\text.o \
$(CORE_DIR)\variable.o \
$(CORE_DIR)\quetzal.o \
$(CORE_DIR)\err.o
.SUFFIXES: .c .o .h
.c.o:
$(CC) $(CFLAGS) $(DEFS) -I$(DOS_DIR) -I$(CORE_DIR) -c -o$@ $<
$(TLIB) $(LIBRARY) +-$@
all: frotz
clean:
$(RM) $(CORE_DIR)\*.o
$(RM) $(DOS_DIR)\*.o
$(RM) *.lib
$(RM) *.exe
$(RM) *.bak
frotz: $(DOS_OBJECTS) $(CORE_OBJECTS)
$(CC) $(CFLAGS) -e$(BINNAME) $(LIBRARY)