OSDN Git Service

[modify](2.2.1.1 #37582) GF_OLD_DRAINをGF_HYPODYNAMIAに改名。使い手のHP回復や滋養度回復を伴わない同魔法効果を...
[hengband/hengband.git] / src / makefile.dos
1 # File: Makefile.dos
2
3 # Purpose: Makefile support for "main-dos.c"
4
5 #
6 # Note: Rename to "Makefile" before using
7 #
8 # Allegro support by Robert Ruehlmann (rr9@angband.org)
9 #
10
11 # Compiling with MOD-file support:
12 # - Get the JG-MOD library from http://www.jgmod.home.ml.org and install it.
13 # - Insert -ljgmod in front of -lalleg to the Libraries section.
14 # - Add -DUSE_MOD_FILES to the compiler flags.
15 # - Copy your MOD-files into the "lib/xtra/music" folder.
16 # Mod-support is experimental and may cause *strange* problems when a
17 # non-MOD file is encountered in lib/xtra/music
18
19 ###################################################################
20 #
21 # Options for Japanese version (comment out for English version)
22
23 JP_OPT= -DJP -DSJIS
24
25 ###################################################################
26
27
28 #
29 # Basic definitions
30 #
31
32 OBJS = \
33         z-util.o z-virt.o z-form.o z-rand.o z-term.o \
34         variable.o tables.o util.o cave.o \
35         object1.o object2.o monster1.o monster2.o \
36         xtra1.o xtra2.o spells1.o spells2.o \
37         melee1.o melee2.o save.o files.o floors.o \
38         cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o \
39         do-spell.o store.o birth.o load.o \
40         wizard1.o wizard2.o grid.o streams.o rooms.o \
41         generate.o dungeon.o init1.o init2.o \
42         effects.o racial.o snipe.o hex.o \
43         artifact.o autopick.o mutation.o flavor.o spells3.o \
44         mspells1.o mspells2.o scores.o mind.o mane.o hissatsu.o \
45         bldg.o obj_kind.o wild.o avatar.o japanese.o mspells3.o \
46         mspells4.o \
47         main-ibm.o main-dos.o main.o
48
49
50 # Compiler
51 CC = gcc
52
53 # Compiler flags
54 #CFLAGS = \
55 #-Wall -O2 -s -fno-strength-reduce -DUSE_DOS -DUSE_IBM -DUSE_BACKGROUND \
56 #-DUSE_TRANSPARENCY \
57 ## -DUSE_MOD_FILES \
58
59 CFLAGS = \
60 -Wall -O2 -s -fno-strength-reduce -DUSE_DOS -DUSE_IBM -DUSE_BACKGROUND \
61 -DUSE_TRANSPARENCY $(JP_OPT)
62
63 # Libraries
64 LIBS = -lpc -lalleg
65
66 #
67 # Targets
68 #
69
70 default: hengband.exe
71         copy hengband.exe ..
72         del hengband.exe
73
74 install: hengband.exe
75         copy hengband.exe ..
76
77 all: hengband.exe
78         @echo All done.  Use 'make install' to install.
79
80
81 #
82 # Link executables
83 #
84
85 hengband.exe: $(OBJS)
86         $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
87
88
89 #
90 # Compile source files
91 #
92
93 .c.o:
94         $(CC) $(CFLAGS) -c $*.c
95
96
97 #
98 # Clean up
99 #
100
101 clean:
102         del *.o
103
104 cleanall: clean
105         del *.exe
106
107
108 artifact.o: artifact.c $(INCS)
109 autopick.o: autopick.c $(INCS)
110 avatar.o: avatar.c $(INCS)
111 birth.o: birth.c $(INCS)
112 bldg.o: bldg.c $(INCS)
113 cave.o: cave.c $(INCS)
114 cmd1.o: cmd1.c $(INCS)
115 cmd2.o: cmd2.c $(INCS)
116 cmd3.o: cmd3.c $(INCS)
117 cmd4.o: cmd4.c $(INCS)
118 cmd5.o: cmd5.c $(INCS)
119 cmd6.o: cmd6.c $(INCS)
120 do-spell.o: do-spell.c $(INCS)
121 dungeon.o: dungeon.c $(INCS)
122 effects.o: effects.c $(INCS)
123 files.o: files.c $(INCS)
124 flavor.o: flavor.c $(INCS)
125 generate.o: generate.c $(INCS) generate.h grid.h rooms.h streams.h
126 grid.o: grid.c $(INCS) grid.h generate.h
127 rooms.o: rooms.c $(INCS) grid.h rooms.h generate.h
128 streams.o: streams.c $(INCS) grid.h generate.h
129 hex.o: hex.c $(INCS)
130 init1.o: init1.c $(INCS)
131 init2.o: init2.c $(INCS)
132 load.o: load.c $(INCS)
133 main-dos.o: main-dos.c $(INCS)
134 main.o: main.c $(INCS)
135 melee1.o: melee1.c $(INCS)
136 melee2.o: melee2.c $(INCS)
137 mind.o: mind.c $(INCS)
138 monster1.o: monster1.c $(INCS)
139 monster2.o: monster2.c $(INCS)
140 mspells1.o: mspells1.c $(INCS)
141 mspells2.o: mspells2.c $(INCS)
142 mspells3.o: mspells3.c $(INCS)
143 mspells4.o: mspells4.c $(INCS)
144 mutation.o: mutation.c $(INCS)
145 notes.o: notes.c $(INCS)
146 object1.o: object1.c $(INCS)
147 object2.o: object2.c $(INCS)
148 obj_kind.o: obj_kind.c $(INCS)
149 racial.o: racial.c $(INCS)
150 save.o: save.c $(INCS)
151 scores.o: scores.c $(INCS)
152 snipe.o: snipe.c $(INCS)
153 spells1.o: spells1.c $(INCS)
154 spells2.o: spells2.c $(INCS)
155 spells3.o: spells3.c $(INCS)
156 store.o: store.c $(INCS)
157 tables.o: tables.c $(INCS)
158 util.o: util.c $(INCS)
159 variable.o: variable.c $(INCS)
160 wild.o: wild.c $(INCS)
161 wizard1.o: wizard1.c $(INCS)
162 wizard2.o: wizard2.c $(INCS)
163 xtra1.o: xtra1.c $(INCS)
164 xtra2.o: xtra2.c $(INCS)
165 z-form.o: z-form.c $(HDRS) z-form.h z-util.h z-virt.h
166 z-rand.o: z-rand.c $(HDRS) z-rand.h
167 z-term.o: z-term.c $(HDRS) z-term.h z-virt.h
168 z-util.o: z-util.c $(HDRS) z-util.h
169 z-virt.o: z-virt.c $(HDRS) z-virt.h z-util.h
170 mane.o: mane.c $(INCS)
171 hissatsu.o: hissatsu.c $(INCS)
172 japanese.o: japanese.c $(INCS)
173 main-ibm.o: main-ibm.c $(INCS)
174 chuukei.o: chuukei.c $(INCS)