OSDN Git Service

[Refactor] #37285 Separated monster-attach-lose.c/h from monster-attack-switcher.c
[hengband/hengband.git] / src / Makefile.am
index fa2776d..83f829d 100644 (file)
@@ -1,6 +1,6 @@
 ## Makefile.am -- Process this file with automake to process Makefile.in
 
-AUTOMAKE_OPTIONS = foreign subdir-objects
+AUTOMAKE_OPTIONS = foreign subdir-objects nostdinc
 
 bin_PROGRAMS = hengband
 
@@ -23,7 +23,6 @@ hengband_SOURCES = \
        artifact/random-art-activation.c artifact/random-art-activation.h \
        artifact/random-art-bias-types.h \
        artifact/random-art-characteristics.c artifact/random-art-characteristics.h \
-       artifact/fixed-art-generator.c artifact/fixed-art-generator.h \
        artifact/random-art-generator.c artifact/random-art-generator.h \
        artifact/random-art-misc.c artifact/random-art-misc.h \
        artifact/random-art-pval-investor.c artifact/random-art-pval-investor.h \
@@ -101,7 +100,6 @@ hengband_SOURCES = \
        cmd-action/cmd-racial.c cmd-action/cmd-racial.h \
        cmd-action/cmd-shoot.c cmd-action/cmd-shoot.h \
        cmd-action/cmd-spell.c cmd-action/cmd-spell.h \
-       cmd-action/cmd-throw.c cmd-action/cmd-throw.h \
        cmd-action/cmd-travel.c cmd-action/cmd-travel.h \
        cmd-action/cmd-tunnel.c cmd-action/cmd-tunnel.h \
        \
@@ -112,6 +110,7 @@ hengband_SOURCES = \
        cmd-io/cmd-autopick.c cmd-io/cmd-autopick.h \
        cmd-io/cmd-diary.c cmd-io/cmd-diary.h \
        cmd-io/cmd-dump.c cmd-io/cmd-dump.h \
+       cmd-io/cmd-floor.c cmd-io/cmd-floor.h \
        cmd-io/cmd-gameoption.c cmd-io/cmd-gameoption.h \
        cmd-io/cmd-help.c cmd-io/cmd-help.h \
        cmd-io/cmd-knowledge.c cmd-io/cmd-knowledge.h \
@@ -124,13 +123,16 @@ hengband_SOURCES = \
        cmd-io/feeling-table.c cmd-io/feeling-table.h \
        cmd-io/macro-util.c cmd-io/macro-util.h \
        \
-       cmd-item/cmd-activate.c cmd-item/cmd-activate.h \
+       cmd-item/cmd-destroy.c cmd-item/cmd-destroy.h \
        cmd-item/cmd-eat.c cmd-item/cmd-eat.h \
+       cmd-item/cmd-equipment.c cmd-item/cmd-equipment.h \
        cmd-item/cmd-item.c cmd-item/cmd-item.h \
        cmd-item/cmd-magiceat.c cmd-item/cmd-magiceat.h \
        cmd-item/cmd-quaff.c cmd-item/cmd-quaff.h \
        cmd-item/cmd-read.c cmd-item/cmd-read.h \
+       cmd-item/cmd-refill.c cmd-item/cmd-refill.h \
        cmd-item/cmd-smith.c cmd-item/cmd-smith.h \
+       cmd-item/cmd-throw.c cmd-item/cmd-throw.h \
        cmd-item/cmd-usestaff.c cmd-item/cmd-usestaff.h \
        cmd-item/cmd-zaprod.c cmd-item/cmd-zaprod.h \
        cmd-item/cmd-zapwand.c cmd-item/cmd-zapwand.h \
@@ -156,6 +158,7 @@ hengband_SOURCES = \
        core/hp-mp-processor.c core/hp-mp-processor.h \
        core/hp-mp-regenerator.c core/hp-mp-regenerator.h \
        core/magic-effects-timeout-reducer.c core/magic-effects-timeout-reducer.h \
+       core/object-compressor.c core/object-compressor.h \
        core/output-updater.c core/output-updater.h \
        core/player-processor.c core/player-processor.h \
        core/player-redraw-types.h \
@@ -164,7 +167,6 @@ hengband_SOURCES = \
        core/show-file.c core/show-file.h \
        core/special-internal-keys.h \
        core/speed-table.c core/speed-table.h \
-       core/status-reseter.c core/status-reseter.h \
        core/stuff-handler.c core/stuff-handler.h \
        core/turn-compensator.c core/turn-compensator.h \
        core/visuals-reseter.c core/visuals-reseter.h \
@@ -198,6 +200,7 @@ hengband_SOURCES = \
        effect/effect-player-curse.c effect/effect-player-curse.h \
        effect/effect-player-spirit.c effect/effect-player-spirit.h \
        effect/effect-player-switcher.c effect/effect-player-switcher.h \
+       effect/effect-processor.c effect/effect-processor.h \
        effect/effect-characteristics.h \
        \
        flavor/flag-inscriptions-table.c flavor/flag-inscriptions-table.h \
@@ -212,7 +215,6 @@ hengband_SOURCES = \
        floor/cave-generator.c floor/cave-generator.h \
        floor/dungeon-tunnel-util.c floor/dungeon-tunnel-util.h \
        floor/fixed-map-generator.c floor/fixed-map-generator.h \
-       floor/floor.c floor/floor.h \
        floor/floor-allocation-types.h \
        floor/floor-base-definitions.h \
        floor/floor-changer.c floor/floor-changer.h \
@@ -228,6 +230,7 @@ hengband_SOURCES = \
        floor/floor-town.h floor/floor-town.c \
        floor/floor-util.c floor/floor-util.h \
        floor/geometry.c floor/geometry.h \
+       floor/line-of-sight.c floor/line-of-sight.h \
        floor/object-allocator.c floor/object-allocator.h \
        floor/object-scanner.c floor/object-scanner.h \
        floor/pattern-walk.c floor/pattern-walk.h \
@@ -251,11 +254,14 @@ hengband_SOURCES = \
        game-option/special-options.c game-option/special-options.h \
        game-option/text-display-options.c game-option/text-display-options.h \
        \
+       grid/door.c grid/door.h \
        grid/feature-flag-types.h \
        grid/feature-generator.c grid/feature-generator.h \
        grid/feature.c grid/feature.h \
        grid/grid.c grid/grid.h \
        grid/lighting-colors-table.c grid/lighting-colors-table.h \
+       grid/object-placer.c grid/object-placer.h \
+       grid/stair.c grid/stair.h \
        grid/trap.c grid/trap.h \
        \
        info-reader/artifact-reader.c info-reader/artifact-reader.h \
@@ -290,7 +296,6 @@ hengband_SOURCES = \
        inventory/player-inventory.c inventory/player-inventory.h \
        inventory/recharge-processor.c inventory/recharge-processor.h \
        \
-       io/chuukei.c io/chuukei.h \
        io/command-repeater.c io/command-repeater.h \
        io/cursor.c io/cursor.h \
        io/exit-panic.c io/exit-panic.h \
@@ -304,6 +309,7 @@ hengband_SOURCES = \
        io/mutations-dump.c io/mutations-dump.h \
        io/pref-file-expressor.c io/pref-file-expressor.h \
        io/read-pref-file.c io/read-pref-file.h \
+       io/record-play-movie.c io/record-play-movie.h \
        io/report.c io/report.h \
        io/screen-util.c io/screen-util.h \
        io/signal-handlers.c io/signal-handlers.h \
@@ -347,12 +353,13 @@ hengband_SOURCES = \
        load/load-util.c load/load-util.h \
        load/load-v1-3-0.c load/load-v1-3-0.h \
        load/load-v1-5-0.c load/load-v1-5-0.h \
+       load/load-v1-7-0.c load/load-v1-7-0.h \
        load/load-zangband.c load/load-zangband.h \
        load/quest-loader.c load/quest-loader.h \
        load/load.c load/load.h \
        load/lore-loader.c load/lore-loader.h \
        load/option-loader.c load/option-loader.h \
-       load/player-attack-loader.c load/player-attack-loader. \
+       load/player-attack-loader.c load/player-attack-loader.h \
        load/player-info-loader.c load/player-info-loader.h \
        load/savedata-flag-types.h \
        load/store-loader.c load/store-loader.h \
@@ -371,7 +378,11 @@ hengband_SOURCES = \
        \
        main.c main-x11.c main-gcu.c \
        \
-       main/init.c main/init.h \
+       main/angband-headers.c main/angband-headers.h \
+       main/angband-initializer.c main/angband-initializer.h \
+       main/game-data-initializer.c main/game-data-initializer.h \
+       main/info-initializer.c main/info-initializer.h \
+       main/init-error-messages-table.c main/init-error-messages-table.h \
        main/music-definitions-table.c main/music-definitions-table.h \
        main/sound-definitions-table.c main/sound-definitions-table.h \
        main/sound-of-music.c main/sound-of-music.h \
@@ -379,6 +390,7 @@ hengband_SOURCES = \
        main/x11-type-string.c main/x11-type-string.h \
        \
        market/arena-info-table.c market/arena-info-table.h \
+       market/building-initializer.c market/building-initializer.h \
        market/building-util.c market/building-util.h \
        market/play-gamble.c market/play-gamble.h \
        market/poker.c market/poker.h \
@@ -406,13 +418,17 @@ hengband_SOURCES = \
        melee/melee-util.c melee/melee-util.h \
        \
        mind/drs-types.h \
+       mind/mind-archer.c mind/mind-archer.h \
        mind/mind-berserker.c mind/mind-berserker.h \
        mind/mind-blue-mage.c mind/mind-blue-mage.h \
        mind/mind-cavalry.c mind/mind-cavalry.h \
+       mind/mind-chaos-warrior.c mind/mind-chaos-warrior.h \
        mind/mind-explanations-table.c mind/mind-explanations-table.h \
        mind/mind-force-trainer.c mind/mind-force-trainer.h \
        mind/mind-info.c mind/mind-info.h \
+       mind/mind-hobbit.c mind/mind-hobbit.h \
        mind/mind-mage.c mind/mind-mage.h \
+       mind/mind-magic-eater.c mind/mind-magic-eater.h \
        mind/mind-magic-resistance.c mind/mind-magic-resistance.h \
        mind/mind-mindcrafter.c mind/mind-mindcrafter.h \
        mind/mind-mirror-master.c mind/mind-mirror-master.h \
@@ -420,6 +436,7 @@ hengband_SOURCES = \
        mind/mind-ninja.c mind/mind-ninja.h \
        mind/mind-numbers.h \
        mind/mind-power-getter.c mind/mind-power-getter.h \
+       mind/mind-priest.c mind/mind-priest.h \
        mind/mind-samurai.c mind/mind-samurai.h \
        mind/mind-sniper.c mind/mind-sniper.h \
        mind/mind-types.h \
@@ -449,6 +466,7 @@ hengband_SOURCES = \
        monster-attack/insults-moans.c monster-attack/insults-moans.h \
        monster-attack/monster-attack-describer.c monster-attack/monster-attack-describer.h \
        monster-attack/monster-attack-effect.h \
+       monster-attack/monster-attack-lose.c monster-attack/monster-attack-lose.h \
        monster-attack/monster-attack-player.c monster-attack/monster-attack-player.h \
        monster-attack/monster-attack-processor.c monster-attack/monster-attack-processor.h \
        monster-attack/monster-attack-status.c monster-attack/monster-attack-status.h \
@@ -458,6 +476,7 @@ hengband_SOURCES = \
        monster-attack/monster-eating.c monster-attack/monster-eating.h \
        \
        monster-floor/monster-death.c monster-floor/monster-death.h \
+       monster-floor/monster-death-util.c monster-floor/monster-death-util.h \
        monster-floor/monster-direction.c monster-floor/monster-direction.h \
        monster-floor/monster-dist-offsets.c monster-floor/monster-dist-offsets.h \
        monster-floor/monster-generator.c monster-floor/monster-generator.h \
@@ -473,6 +492,7 @@ hengband_SOURCES = \
        monster-floor/one-monster-placer.c monster-floor/one-monster-placer.h \
        monster-floor/place-monster-types.h \
        monster-floor/quantum-effect.c monster-floor/quantum-effect.h \
+       monster-floor/special-death-switcher.c monster-floor/special-death-switcher.h \
        \
        monster-race/monster-race.c monster-race/monster-race.h \
        monster-race/monster-race-hook.c monster-race/monster-race-hook.h \
@@ -509,7 +529,7 @@ hengband_SOURCES = \
        mspell/mspell-special.c mspell/mspell-special.h \
        mspell/mspell-status.c mspell/mspell-status.h \
        mspell/mspell-particularity.c mspell/mspell-particularity.h \
-       mspell/mspell-selector.hmspell/mspell-selector.h \
+       mspell/mspell-selector.mspell/mspell-selector.h \
        mspell/smart-mspell-util.c mspell/smart-mspell-util.h \
        mspell/specified-summon.c mspell/specified-summon.h \
        mspell/summon-checker.c mspell/summon-checker.h \
@@ -539,7 +559,15 @@ hengband_SOURCES = \
        object/object-mark-types.h \
        object/item-use-flags.h \
        \
+       object-activation/activation-bolt-ball.c object-activation/activation-bolt-ball.h \
        object-activation/activation-breath.c object-activation/activation-breath.h \
+       object-activation/activation-charm.c object-activation/activation-charm.h \
+       object-activation/activation-genocide.c object-activation/activation-genocide.h \
+       object-activation/activation-others.c object-activation/activation-others.h \
+       object-activation/activation-resistance.c object-activation/activation-resistance.h \
+       object-activation/activation-switcher.c object-activation/activation-switcher.h \
+       object-activation/activation-teleport.c object-activation/activation-teleport.h \
+       object-activation/activation-util.c object-activation/activation-util.h \
        \
        object-enchant/activation-info-table.c object-enchant/activation-info-table.h \
        object-enchant/apply-magic.c object-enchant/apply-magic.h \
@@ -547,7 +575,6 @@ hengband_SOURCES = \
        object-enchant/apply-magic-armor.c object-enchant/apply-magic-armor.h \
        object-enchant/apply-magic-others.c object-enchant/apply-magic-others.h \
        object-enchant/apply-magic-weapon.c object-enchant/apply-magic-weapon.h \
-       object-enchant/artifact.c object-enchant/artifact.h \
        object-enchant/dragon-breaths-table.c object-enchant/dragon-breaths-table.h \
        object-enchant/object-boost.c object-enchant/object-boost.h \
        object-enchant/object-curse.c object-enchant/object-curse.h \
@@ -579,7 +606,6 @@ hengband_SOURCES = \
        pet/pet-util.c pet/pet-util.h \
        \
        player/attack-defense-types.h \
-       player/avatar.h player/avatar.c \
        player/eldritch-horror.c player/eldritch-horror.h \
        player/mimic-info-table.c player/mimic-info-table.h \
        player/patron.c player/patron.h \
@@ -602,10 +628,10 @@ hengband_SOURCES = \
        player/player-status.c player/player-status.h \
        player/player-status-flags.c player/player-status-flags.h \
        player/player-status-table.c player/player-status-table.h \
+       player/player-status-resist.c player/player-status-resist.h \
        player/player-personalities-types.h \
        player/player-sex.c player/player-sex.h \
        player/player-view.c player/player-view.h \
-       player/selfinfo.c player/selfinfo.h \
        player/special-defense-types.h \
        \
        player-attack/player-attack-util.h \
@@ -613,6 +639,18 @@ hengband_SOURCES = \
        player-attack/blood-sucking-processor.c player-attack/blood-sucking-processor.h \
        player-attack/player-attack.c player-attack/player-attack.h \
        \
+       player-info/avatar.h player-info/avatar.c \
+       player-info/base-status-info.c player-info/base-status-info.h \
+       player-info/base-status-types.h \
+       player-info/body-improvement-info.c player-info/body-improvement-info.h \
+       player-info/class-ability-info.c player-info/class-ability-info.h \
+       player-info/mutation-info.c player-info/mutation-info.h \
+       player-info/race-ability-info.c player-info/race-ability-info.h \
+       player-info/resistance-info.c player-info/resistance-info.h \
+       player-info/self-info.c player-info/self-info.h \
+       player-info/self-info-util.c player-info/self-info-util.h \
+       player-info/weapon-effect-info.c player-info/weapon-effect-info.h \
+       \
        racial/class-racial-switcher.c racial/class-racial-switcher.h \
        racial/mutation-racial-selector.c racial/mutation-racial-selector.h \
        racial/race-racial-command-setter.c racial/race-racial-command-setter.h \
@@ -659,6 +697,7 @@ hengband_SOURCES = \
        room/space-finder.c room/space-finder.h \
        room/pit-nest-kinds-table.c room/pit-nest-kinds-table.h \
        room/treasure-deployment.c room/treasure-deployment.h \
+       room/vault-builder.c room/vault-builder.h \
        \
        save/floor-writer.c save/floor-writer.h \
        save/info-writer.c save/info-writer.h \
@@ -668,13 +707,18 @@ hengband_SOURCES = \
        save/save.c save/save.h \
        save/save-util.c save/save-util.h \
        \
+       specific-object/blade-turner.c specific-object/blade-turner.h \
+       specific-object/bloody-moon.c specific-object/bloody-moon.h \
        specific-object/bow.c specific-object/bow.h \
        specific-object/chest.c specific-object/chest.h \
        specific-object/death-crimson.c specific-object/death-crimson.h \
        specific-object/death-scythe.c specific-object/death-scythe.h \
+       specific-object/monster-ball.c specific-object/monster-ball.h \
+       specific-object/muramasa.c specific-object/muramasa.h \
+       specific-object/ring-of-power.c specific-object/ring-of-power.h \
+       specific-object/toragoroshi.c specific-object/toragoroshi.h \
        specific-object/torch.c specific-object/torch.h \
        \
-       spell/process-effect.c spell/process-effect.h \
        spell/range-calc.c spell/range-calc.h \
        spell/spells-describer.c spell/spells-describer.h \
        spell/spells-diceroll.c spell/spells-diceroll.h \
@@ -685,6 +729,7 @@ hengband_SOURCES = \
        spell/spells-summon.c spell/spells-summon.h \
        spell/spells-status.c spell/spells-status.h \
        spell/spell-types.h spell/spells-util.h \
+       spell/summon-types.h \
        spell/technic-info-table.c spell/technic-info-table.h \
        \
        spell-kind/blood-curse.c spell-kind/blood-curse.h \
@@ -712,11 +757,13 @@ hengband_SOURCES = \
        spell-kind/spells-teleport.c spell-kind/spells-teleport.h \
        spell-kind/spells-world.c spell-kind/spells-world.h \
        \
+       spell-realm/spells-arcane.c spell-realm/spells-arcane.h \
        spell-realm/spells-chaos.c spell-realm/spells-chaos.h \
        spell-realm/spells-craft.c spell-realm/spells-craft.h \
        spell-realm/spells-crusade.c spell-realm/spells-crusade.h \
        spell-realm/spells-demon.c spell-realm/spells-demon.h \
        spell-realm/spells-hex.c spell-realm/spells-hex.h \
+       spell-realm/spells-nature.c spell-realm/spells-nature.h \
        spell-realm/spells-song.c spell-realm/spells-song.h \
        spell-realm/spells-sorcery.c spell-realm/spells-sorcery.h \
        spell-realm/spells-trump.c spell-realm/spells-trump.h \
@@ -735,10 +782,10 @@ hengband_SOURCES = \
        store/home.c store/home.h \
        store/store.c store/store.h \
        store/black-market.c store/black-market.h \
+       store/museum.c store/museum.h \
        store/pricing.c store/pricing.h \
        store/purchase-order.c store/purchase-order.h \
        store/owner-insults.c store/owner-insults.h \
-       store/purchase-order.c store/purchase-order.h \
        store/rumor.c store/rumor.h \
        store/say-comments.c store/say-comments.h \
        store/sell-order.c store/sell-order.h \
@@ -759,8 +806,9 @@ hengband_SOURCES = \
        system/alloc-entries.c system/alloc-entries.h \
        system/alloc-entry-definition.h \
        system/angband.h system/angband-version.h \
+       system/artifact-type-definition.c system/artifact-type-definition.h \
        system/building-type-definition.c system/building-type-definition.h \
-       system/dungeon-data-definition.c system/dungeon-data-definition.h \
+       system/dungeon-data-definition.h \
        system/floor-type-definition.h \
        system/game-option-types.h \
        system/h-basic.h system/h-config.h \
@@ -772,6 +820,7 @@ hengband_SOURCES = \
        system/gamevalue.h \
        \
        target/grid-selector.c target/grid-selector.h \
+       target/projection-path-calculator.c target/projection-path-calculator.h \
        target/target-checker.c target/target-checker.h \
        target/target-describer.c target/target-describer.h \
        target/target-getter.c target/target-getter.h \
@@ -812,6 +861,7 @@ hengband_SOURCES = \
        view/display-player-misc-info.c view/display-player-misc-info.h \
        view/display-player-middle.c view/display-player-middle.h \
        view/display-player.c view/display-player.h \
+       view/display-self-info.c view/display-self-info.h \
        view/display-store.c view/display-store.h \
        view/display-util.c view/display-util.h \
        view/object-describer.c view/object-describer.h \
@@ -825,7 +875,7 @@ hengband_SOURCES = \
        window/main-window-row-column.h \
        window/main-window-stat-poster.c window/main-window-stat-poster.h \
        window/main-window-util.c window/main-window-util.h \
-       window/main-window-equipment.c window/main-window-equipment.h \
+       window/main-window-equipments.c window/main-window-equipments.h \
        \
        wizard/artifact-analyzer.c wizard/artifact-analyzer.h \
        wizard/artifact-bias-table.c wizard/artifact-bias-table.h \
@@ -854,19 +904,73 @@ EXTRA_hengband_SOURCES = \
 EXTRA_DIST = \
        gcc-wrap
 
+DEFAULT_INCLUDES = -I$(srcdir) \
+       -I$(srcdir)/artifact \
+       -I$(srcdir)/art-definition \
+       -I$(srcdir)/autopick \
+       -I$(srcdir)/birth \
+       -I$(srcdir)/blue-magic \
+       -I$(srcdir)/cmd-action \
+       -I$(srcdir)/cmd-building \
+       -I$(srcdir)/cmd-io \
+       -I$(srcdir)/cmd-item \
+       -I$(srcdir)/cmd-visual \
+       -I$(srcdir)/combat \
+       -I$(srcdir)/core \
+       -I$(srcdir)/dungeon \
+       -I$(srcdir)/effect \
+       -I$(srcdir)/flavor \
+       -I$(srcdir)/floor \
+       -I$(srcdir)/game-option \
+       -I$(srcdir)/grid \
+       -I$(srcdir)/info-reader \
+       -I$(srcdir)/inventory \
+       -I$(srcdir)/io \
+       -I$(srcdir)/io-dump \
+       -I$(srcdir)/knowledge \
+       -I$(srcdir)/load \
+       -I$(srcdir)/lore \
+       -I$(srcdir)/market \
+       -I$(srcdir)/melee \
+       -I$(srcdir)/mind \
+       -I$(srcdir)/monster \
+       -I$(srcdir)/monster-attack \
+       -I$(srcdir)/monster-floor \
+       -I$(srcdir)/monster-race \
+       -I$(srcdir)/mspell \
+       -I$(srcdir)/mutation \
+       -I$(srcdir)/object \
+       -I$(srcdir)/object-activation \
+       -I$(srcdir)/object-enchant \
+       -I$(srcdir)/object-hook \
+       -I$(srcdir)/object-use \
+       -I$(srcdir)/pet \
+       -I$(srcdir)/player \
+       -I$(srcdir)/player-attack \
+       -I$(srcdir)/player-info \
+       -I$(srcdir)/racial \
+       -I$(srcdir)/realm \
+       -I$(srcdir)/room \
+       -I$(srcdir)/save \
+       -I$(srcdir)/specific-object \
+       -I$(srcdir)/spell \
+       -I$(srcdir)/spell-kind \
+       -I$(srcdir)/spell-realm \
+       -I$(srcdir)/status \
+       -I$(srcdir)/sv-definition \
+       -I$(srcdir)/system \
+       -I$(srcdir)/target \
+       -I$(srcdir)/term \
+       -I$(srcdir)/util \
+       -I$(srcdir)/view \
+       -I$(srcdir)/window \
+       -I$(srcdir)/wizard \
+       -I$(srcdir)/world \
+       -I$(top_builddir)/src 
 CFLAGS += $(XFT_CFLAGS)
 LIBS += $(XFT_LIBS)
 COMPILE = $(srcdir)/gcc-wrap $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
-       $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
-       -Iartifact -Iart-definition -Iautopick -Ibirth -Iblue-magic -Icmd-io \
-       -Icmd-item -Icmd-visual -Icombat -Icore -Idungeon -Ieffect -Iflavor \
-       -Ifloor -Igame-option -Igrid -Iinfo-reader -Iinventory -Iio -Iio-dump \
-       -Iknowledge -Iload -Imarket -Imelee -Imind -Imonster -Imonster-attack \
-       -Imonster-floor -Imonster-race -Ilore -Imspell -Imutation -Iobject \
-       -Iobject-activation -Iobject-enchant -Iobject-hook -Iobject-use -Ipet \
-       -Iplayer -Iplayer-attack -Iracial -Irealm -Iroom -Isave -Ispecific-object \
-       -Ispell -Ispell-kind -Ispell-realm -Istatus -Isv-definition -Isystem \
-       -Itarget -Iterm -Iutil -Iview -Iwindow -Iwizard -Iworld
+       $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 
 
 install-exec-hook:
 if SET_GID