1 ###################################################################
3 # makefile.bcc - Angband makefile for Borland C++ 5.5 (Win32)
5 ###################################################################
8 ###################################################################
10 # Borland specific directives ---
14 ###################################################################
16 # Set tool and version names:
22 ###################################################################
24 # Name of the *.exe-file
26 EXE_FILE = hengband.exe
29 ###################################################################
31 # Debug mode (un-comment for debugging)
33 # DBGOPT= -v -N -x -xp
36 ###################################################################
38 # Change these for English version (or Japanese version)
41 # Japanese version (comment out for English version)
43 ANGBAND_RC = angband.rc
45 # English version (un-comment for English version)
46 #ANGBAND_RC = ang_eng.rc
50 ###################################################################
52 # Set any compiler options
54 CCOPTS = -jb -j1 -Hc -tW -lGn -e$(EXE_FILE) -w- \
55 -D_WIN32_WINNT=0x0400 -DWINVER=0x0400 \
56 -DUSE_TRANSPARENCY $(JP_OPT)
59 CPPFLAGS= $(CCOPTS) $(DBGOPT)
62 ######################## Targets ##################################
65 artifact.obj avatar.obj birth.obj bldg.obj cave.obj \
66 cmd1.obj cmd2.obj cmd3.obj cmd4.obj cmd5.obj cmd6.obj \
67 dungeon.obj effects.obj files.obj flavor.obj generate.obj \
68 grid.obj hissatsu.obj inet.obj init1.obj init2.obj japanese.obj \
69 load.obj main-win.obj mane.obj melee1.obj melee2.obj mind.obj \
70 monster1.obj monster2.obj mspells1.obj mspells2.obj mspells3.obj \
72 obj_kind.obj object1.obj object2.obj racial.obj readdib.obj \
73 report.obj rooms.obj save.obj scores.obj script.obj spells1.obj \
74 spells2.obj spells3.obj store.obj streams.obj tables.obj util.obj \
75 variable.obj wild.obj wizard1.obj wizard2.obj xtra1.obj xtra2.obj \
76 z-form.obj z-rand.obj z-term.obj z-util.obj z-virt.obj
81 -@if exist *.obj del *.obj >nul
82 -@if exist *.exe del *.exe >nul
83 -@if exist *.res del *.res >nul
84 -@if exist *.tds del *.tds >nul
85 -@if exist *.ilc del *.ilc >nul
86 -@if exist *.ild del *.ild >nul
87 -@if exist *.ilf del *.ilf >nul
88 -@if exist *.ils del *.ils >nul
94 ########################### Explicit Rules ########################
95 $(EXE_FILE): $(OBJ) angband.res
96 $(LINKER) -aa -x $(OBJ) c0w32.obj, $(EXE_FILE),, cw32.lib import32.lib,, angband.res
98 angband.res: $(ANGBAND_RC)
99 $(RC) -r $(ANGBAND_RC)
101 ########################### Implicit Rules ########################
103 $(CPP) $(CPPFLAGS) -c {$? }
106 $(CPP) $(CPPFLAGS) -c -Sr -Sd {$? }
109 $(CPP) $(CPPFLAGS) $<