OSDN Git Service

v3.0.0 Alpha5 OSDN最終版
[hengband/hengband.git] / src / makefile.bcc
1 ###################################################################
2 #
3 #  makefile.bcc - Angband makefile for Borland C++ 5.5 (Win32)
4 #
5 ###################################################################
6
7
8 ###################################################################
9 #
10 #       Borland specific directives ---
11 #
12 .AUTODEPEND
13
14 ###################################################################
15 #
16 # Set tool and version names:
17
18 CPP        = bcc32
19 LINKER     = ilink32
20 RC         = brc32
21
22 ###################################################################
23 #
24 # Name of the *.exe-file
25
26 EXE_FILE = hengband.exe
27
28
29 ###################################################################
30 #
31 # Debug mode (un-comment for debugging)
32
33 # DBGOPT= -v -N -x -xp
34
35
36 ###################################################################
37 #
38 #  Change these for English version (or Japanese version)
39 #
40
41 # Japanese version (comment out for English version)
42 JP_OPT= -DJP -DSJIS
43 ANGBAND_RC = angband.rc
44
45 # English version (un-comment for English version)
46 #ANGBAND_RC = ang_eng.rc
47
48
49
50 ###################################################################
51 #
52 # Set any compiler options
53
54 CCOPTS = -Od -jb -j1 -Hc -tW -lGn -e$(EXE_FILE) \
55         -wamb -wdef -wnod -wpin -wstu -wstv -wuse \
56         -D_WIN32_WINNT=0x0400 -DWINVER=0x0501 \
57         -DUSE_TRANSPARENCY $(JP_OPT)
58
59 # Compile flags:
60 CPPFLAGS= $(CCOPTS) $(DBGOPT)
61
62
63 ######################## Targets ##################################
64
65 OBJ = \
66         artifact.obj autopick.obj avatar.obj birth.obj bldg.obj cave.obj \
67         cmd1.obj cmd2.obj cmd3.obj cmd4.obj cmd5.obj cmd6.obj do-spell.obj \
68         dungeon.obj effects.obj files.obj floors.obj flavor.obj generate.obj \
69         grid.obj hissatsu.obj inet.obj init1.obj init2.obj japanese.obj \
70         load.obj main-win.obj mane.obj melee1.obj melee2.obj mind.obj \
71         monster1.obj monster2.obj mspells1.obj mspells2.obj mspells3.obj \
72         mspells4.obj mutation.obj snipe.obj hex.obj \
73         obj_kind.obj object1.obj object2.obj racial.obj readdib.obj \
74         report.obj rooms.obj save.obj scores.obj spells1.obj \
75         spells2.obj spells3.obj store.obj streams.obj tables.obj util.obj \
76         variable.obj wild.obj wizard1.obj wizard2.obj xtra1.obj xtra2.obj \
77         z-form.obj z-rand.obj z-term.obj z-util.obj z-virt.obj \
78         chuukei.obj
79
80 all : $(EXE_FILE)
81
82 clean:
83         -@if exist *.obj del *.obj >nul
84         -@if exist *.exe del *.exe >nul
85         -@if exist *.res del *.res >nul
86         -@if exist *.tds del *.tds >nul
87         -@if exist *.ilc del *.ilc >nul
88         -@if exist *.ild del *.ild >nul
89         -@if exist *.ilf del *.ilf >nul
90         -@if exist *.ils del *.ils >nul
91
92 install: $(EXE_FILE)
93         copy $(EXE_FILE) ..
94
95
96 ########################### Explicit Rules ########################
97 $(EXE_FILE): $(OBJ) angband.res
98         $(LINKER) -aa -x $(OBJ) c0w32.obj, $(EXE_FILE),, cw32.lib import32.lib,, angband.res
99
100 angband.res: $(ANGBAND_RC)
101         $(RC) -r -foangband.res $(ANGBAND_RC)
102
103 ########################### Implicit Rules ########################
104 .c.obj:
105         $(CPP) $(CPPFLAGS) -c {$? }
106
107 .c.i:
108         $(CPP) $(CPPFLAGS) -c -Sr -Sd {$? }
109
110 .obj.exe:
111         $(CPP) $(CPPFLAGS) $<
112