blob: 5b3342ccf0e2b608cfb76c91103d8da69fe8fcc0 (
plain)
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
|
###################################################################
#
# makefile.bcc - Angband makefile for Borland C++ 5.5 (Win32)
#
###################################################################
###################################################################
#
# Borland specific directives ---
#
.AUTODEPEND
###################################################################
#
# Set tool and version names:
CPP = bcc32
LINKER = ilink32
RC = brc32
###################################################################
#
# Name of the *.exe-file
EXE_FILE = tome.exe
TOLUA = tolua.exe
###################################################################
#
# Debug mode (un-comment for debugging)
# DBGOPT= -v -N -x -xp
###################################################################
#
# Set any compiler options
CCOPTS = -jb -j1 -Hc -tW -lGn -w- \
-D_WIN32_WINNT=0x0400 -DWINVER=0x0400 \
-DUSE_TRANSPARENCY -DUSE_EGO_GRAPHICS -DSUPPORT_GAMMA \
-I$(BCCDIR)\include -I. -Ilua -DUSE_LUA \
-DUSE_PRECISE_CMOVIE \
-DUSE_WINSOCK \
-DIRC_SERVER=\"irc.worldirc.org\" -DIRC_PORT=\"6667\" -DIRC_CHANNEL=\"\#tome\"
# Compile flags:
CPPFLAGS= $(CCOPTS) $(DBGOPT)
######################## Targets ##################################
OBJ = \
gods.obj \
skills.obj \
irc.obj \
birth.obj \
bldg.obj \
cave.obj \
cmd1.obj \
cmd2.obj \
cmd3.obj \
cmd4.obj \
cmd5.obj \
cmd6.obj \
cmd7.obj \
cmovie.obj \
dungeon.obj \
files.obj \
generate.obj \
gen_maze.obj \
gen_evol.obj \
help.obj \
init1.obj \
init2.obj \
levels.obj \
loadsave.obj \
lua_bind.obj \
main-win.obj \
main.obj \
melee1.obj \
melee2.obj \
modules.obj \
monster1.obj \
monster2.obj \
monster3.obj \
notes.obj \
object1.obj \
object2.obj \
plots.obj \
powers.obj \
randart.obj \
readdib.obj \
script.obj \
spells1.obj \
spells2.obj \
squeltch.obj \
status.obj \
store.obj \
tables.obj \
traps.obj \
util.obj \
variable.obj \
wild.obj \
wizard1.obj \
wizard2.obj \
xtra1.obj \
xtra2.obj \
z-form.obj \
z-rand.obj \
z-term.obj \
z-util.obj \
z-virt.obj \
z-sock.obj \
w_mnster.obj \
w_obj.obj \
w_play_c.obj \
w_player.obj \
w_quest.obj \
w_spells.obj \
w_util.obj \
w_z_pack.obj \
w_dun.obj \
$(TOLUAOBJS)
TOLUAOBJS = \
lua\lapi.obj \
lua\lauxlib.obj \
lua\lbaselib.obj \
lua\lcode.obj \
lua\ldblib.obj \
lua\ldebug.obj \
lua\ldo.obj \
lua\lfunc.obj \
lua\lgc.obj \
lua\liolib.obj \
lua\llex.obj \
lua\lmem.obj \
lua\lobject.obj \
lua\lparser.obj \
lua\lstate.obj \
lua\lstring.obj \
lua\lstrlib.obj \
lua\ltable.obj \
lua\ltests.obj \
lua\ltm.obj \
lua\lundump.obj \
lua\lvm.obj \
lua\lzio.obj \
lua\tolua.obj \
lua\tolua_bd.obj \
lua\tolua_eh.obj \
lua\tolua_gp.obj \
lua\tolua_lb.obj \
lua\tolua_rg.obj \
lua\tolua_tm.obj \
lua\tolua_tt.obj \
lua\tolualua.obj \
all : $(EXE_FILE)
copy $(EXE_FILE) ..
clean:
-@if exist *.obj del *.obj >nul
-@if exist lua\*.obj del lua\*.obj >nul
-@if exist *.exe del *.exe >nul
-@if exist *.res del *.res >nul
-@if exist *.tds del *.tds >nul
-@if exist *.ilc del *.ilc >nul
-@if exist *.ild del *.ild >nul
-@if exist *.ilf del *.ilf >nul
-@if exist *.ils del *.ils >nul
install: $(EXE_FILE)
copy $(EXE_FILE) ..
########################### Explicit Rules ########################
$(EXE_FILE): $(OBJ) angband.res
$(LINKER) -aa -L$(BCCDIR)\lib -x $(OBJ) c0w32.obj, $(EXE_FILE),, cw32.lib import32.lib,, angband.res
$(TOLUA): $(TOLUAOBJS)
$(LINKER) -aa -L$(BCCDIR)\lib -x $(TOLUAOBJS) c0x32.obj, tolua.exe,, cw32.lib import32.lib
angband.res: angband.rc
$(RC) -r angband.rc
w_mnster.c: monster.pkg $(TOLUA)
$(TOLUA) -n monster -o w_mnster.c monster.pkg
w_player.c: player.pkg $(TOLUA)
$(TOLUA) -n player -o w_player.c player.pkg
w_play_c.c: player_c.pkg $(TOLUA)
$(TOLUA) -n player_c -o w_play_c.c player_c.pkg
w_z_pack.c: z_pack.pkg $(TOLUA)
$(TOLUA) -n z_pack -o w_z_pack.c z_pack.pkg
w_obj.c: object.pkg $(TOLUA)
$(TOLUA) -n object -o w_obj.c object.pkg
w_util.c: util.pkg $(TOLUA)
$(TOLUA) -n util -o w_util.c util.pkg
w_spells.c: spells.pkg $(TOLUA)
$(TOLUA) -n spells -o w_spells.c spells.pkg
w_quest.c: quest.pkg $(TOLUA)
$(TOLUA) -n quest -o w_quest.c quest.pkg
w_dun.c: dungeon.pkg $(TOLUA)
$(TOLUA) -n dungeon -o w_dun.c dungeon.pkg
########################### Implicit Rules ########################
.c.obj:
$(CPP) $(CPPFLAGS) -c -o$*.obj $*.c
.obj.exe:
$(CPP) $(CPPFLAGS) $<
|