################################################################### # # makefile.dmc - makefile for # Digital Mars C/C++ Compiler Version 8.50(with Basic Utilities) # ################################################################### ################################################################### # # Set tool and version names: CPP = dmc LINKER = link RC = rcc ################################################################### # # Name of the *.exe-file EXE_FILE = hengband.exe ################################################################### # # Debug mode (un-comment for debugging) # DBGOPT= -g ################################################################### # # Change these for English version (or Japanese version) # # Japanese version (comment out for English version) JP_OPT= -DJP -DSJIS ANGBAND_RC = angband.rc # English version (un-comment for English version) #ANGBAND_RC = ang_eng.rc ################################################################### # # Set define VK_* VK_DEF = \ -DVK_KANA=0x15 \ -DVK_JUNJA=0x17 \ -DVK_FINAL=0x18 \ -DVK_KANJI=0x19 \ -DVK_CONVERT=0x1C \ -DVK_NONCONVERT=0x1D \ -DVK_ACCEPT=0x1E \ -DVK_MODECHANGE=0x1F ################################################################### # # Set any compiler options CCOPTS = -o-none -WA -j0 \ -D_WIN32_WINNT=0x0400 -DWINVER=0x0400 \ -DUSE_TRANSPARENCY $(JP_OPT) \ -DHAVE_USLEEP -DWIN32_LEAN_AND_MEAN $(VK_DEF) # Compile flags: CPPFLAGS= $(CCOPTS) $(DBGOPT) ######################## Targets ################################## OBJ = \ artifact.obj autopick.obj avatar.obj birth.obj bldg.obj cave.obj \ cmd1.obj cmd2.obj cmd3.obj cmd4.obj cmd5.obj cmd6.obj do-spell.obj \ dungeon.obj effects.obj files.obj floors.obj flavor.obj generate.obj \ grid.obj hissatsu.obj inet.obj init1.obj init2.obj japanese.obj \ load.obj main-win.obj mane.obj melee1.obj melee2.obj mind.obj \ monster1.obj monster2.obj mspells1.obj mspells2.obj mspells3.obj \ mutation.obj snipe.obj hex.obj \ obj_kind.obj object1.obj object2.obj racial.obj readdib.obj \ report.obj rooms.obj save.obj scores.obj spells1.obj \ spells2.obj spells3.obj store.obj streams.obj tables.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 \ chuukei.obj all : $(EXE_FILE) clean: -@if exist *.obj del *.obj >nul -@if exist *.exe del *.exe >nul -@if exist *.res del *.res >nul -@if exist *.map del *.map >nul install: $(EXE_FILE) copy $(EXE_FILE) .. ########################### Explicit Rules ######################## $(EXE_FILE): $(OBJ) angband.res $(LINKER) /SUBSYSTEM:WINDOWS:4.0 /NOMAP $(OBJ), $(EXE_FILE),, comdlg32.lib gdi32.lib winmm.lib wsock32.lib,, angband.res angband.res: $(ANGBAND_RC) # $(RC) $(ANGBAND_RC) -oangband.res $(JP_OPT) -r -32 $(RC) ang_eng.rc -oangband.res -r -32 ########################### Implicit Rules ######################## .c.obj: $(CPP) $(CPPFLAGS) -c $? .obj.exe: $(CPP) $(CPPFLAGS) $<