• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision0b55b23727535ce1930580516bad8c93bb861881 (tree)
Time2020-03-19 22:18:55
Authorshimitei <shimitei@gmai...>
Commitershimitei

Log Message

update makefile

コンパイルとリンクを分けて行えるように

Change Summary

Incremental Difference

--- a/src/makefile.em
+++ b/src/makefile.em
@@ -2,61 +2,67 @@
22
33 CC = emcc
44 LD = emcc
5-CFLAGS = -c
5+CFLAGS = -fPIC
66 LDFLAGS = -v -s EXIT_RUNTIME=1
7-DEFINES = -DHAVE_USLEEP
7+DEFINES =
88
99 TARGET_FILE = hengband.html
1010
11-CFILES = \
12- main-wasm.c main-wasm-term.c \
13- artifact.c autopick.c avatar.c \
14- birth.c bldg.c \
15- chest.c chuukei.c cmd2.c cmd4.c cmd-activate.c cmd-eat.c \
16- cmd-hissatsu.c cmd-item.c cmd-magiceat.c cmd-mane.c cmd-pet.c \
17- cmd-quaff.c cmd-read.c cmd-smith.c cmd-spell.c cmd-usestaff.c \
18- cmd-zaprod.c cmd-zapwand.c \
19- dungeon.c \
20- effects.c \
21- feature.c files.c flavor.c floor-events.c floor-generate.c \
22- floor-save.c floor-streams.c \
23- gameoption.c geometry.c grid.c \
24- history.c \
25- inet.c init1.c init2.c \
26- japanese.c \
27- load.c \
28- melee1.c mind.c monster1.c monster2.c monster-process.c \
29- monsterrace-hook.c monster-status.c mspells1.c mspells2.c mspells3.c \
30- mspells4.c mutation.c \
31- object1.c object2.c object-boost.c object-broken.c object-curse.c \
32- object-hook.c objectkind-hook.c \
33- patron.c player-damage.c player-move.c player-status.c projection.c \
34- quest.c \
35- racial.c realm-arcane.c realm-chaos.c realm-craft.c realm-crusade.c \
36- realm-daemon.c realm-death.c realm-hex.c realm-hissatsu.c \
37- realm-life.c realm-nature.c realm-song.c realm-sorcery.c \
38- realm-trump.c report.c rooms.c rooms-city.c rooms-fractal.c \
39- rooms-normal.c rooms-pitnest.c rooms-special.c rooms-trap.c \
40- rooms-vault.c rumor.c \
41- save.c scores.c selfinfo.c shoot.c snipe.c sort.c spells1.c \
42- spells2.c spells3.c spells-diceroll.c spells-floor.c spells-object.c \
43- spells-status.c spells-summon.c spells-world.c store.c \
44- tables.c term.c trap.c \
45- util.c \
46- variable.c view-mainwindow.c \
47- warning.c wild.c wizard1.c wizard2.c world.c xtra2.c \
48- z-form.c z-rand.c z-term.c z-util.c z-virt.c
11+OBJS = \
12+ main-wasm.bc main-wasm-term.bc \
13+ artifact.bc autopick.bc avatar.bc \
14+ birth.bc bldg.bc \
15+ chest.bc chuukei.bc cmd2.bc cmd4.bc cmd-activate.bc cmd-eat.bc \
16+ cmd-hissatsu.bc cmd-item.bc cmd-magiceat.bc cmd-mane.bc cmd-pet.bc \
17+ cmd-quaff.bc cmd-read.bc cmd-smith.bc cmd-spell.bc cmd-usestaff.bc \
18+ cmd-zaprod.bc cmd-zapwand.bc \
19+ dungeon.bc \
20+ effects.bc \
21+ feature.bc files.bc flavor.bc floor-events.bc floor-generate.bc \
22+ floor-save.bc floor-streams.bc \
23+ gameoption.bc geometry.bc grid.bc \
24+ history.bc \
25+ inet.bc init1.bc init2.bc \
26+ japanese.bc \
27+ load.bc \
28+ melee1.bc mind.bc monster1.bc monster2.bc monster-process.bc \
29+ monsterrace-hook.bc monster-status.bc mspells1.bc mspells2.bc mspells3.bc \
30+ mspells4.bc mutation.bc \
31+ object1.bc object2.bc object-boost.bc object-broken.bc object-curse.bc \
32+ object-hook.bc objectkind-hook.bc \
33+ patron.bc player-damage.bc player-move.bc player-status.bc projection.bc \
34+ quest.bc \
35+ racial.bc realm-arcane.bc realm-chaos.bc realm-craft.bc realm-crusade.bc \
36+ realm-daemon.bc realm-death.bc realm-hex.bc realm-hissatsu.bc \
37+ realm-life.bc realm-nature.bc realm-song.bc realm-sorcery.bc \
38+ realm-trump.bc report.bc rooms.bc rooms-city.bc rooms-fractal.bc \
39+ rooms-normal.bc rooms-pitnest.bc rooms-special.bc rooms-trap.bc \
40+ rooms-vault.bc rumor.bc \
41+ save.bc scores.bc selfinfo.bc shoot.bc snipe.bc sort.bc spells1.bc \
42+ spells2.bc spells3.bc spells-diceroll.bc spells-floor.bc spells-object.bc \
43+ spells-status.bc spells-summon.bc spells-world.bc store.bc \
44+ tables.bc term.bc trap.bc \
45+ util.bc \
46+ variable.bc view-mainwindow.bc \
47+ warning.bc wild.bc wizard1.bc wizard2.bc world.bc xtra2.bc \
48+ z-form.bc z-rand.bc z-term.bc z-util.bc z-virt.bc
4949
50+.PHONY: all
5051 all : $(TARGET_FILE)
52+ cp hengband.* ..
53+
54+.PHONY: prebuild
5155 prebuild :
5256 mklink /D lib ..\lib
5357 # ln -s ../lib lib
54-install : all
55- cp hengband.* ..
5658
57-$(TARGET_FILE):
58- $(LD) $(LDFLAGS) $(DEFINES) $(CFILES) --preload-file lib -o $(TARGET_FILE)
59+$(TARGET_FILE): $(OBJS)
60+ $(LD) $(LDFLAGS) $(OBJS) --preload-file lib -o $(TARGET_FILE)
61+
62+.SUFFIXES: .c .bc
63+.c.bc:
64+ $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
5965
6066 .PHONY: clean
6167 clean:
62- $(RM) hengband.* $(OBJS)
68+ $(RM) hengband.* *.bc