我的makefile无法工作,因为我似乎无法包含boost目录。文件位置正确,/ home / yagami / downloads / boost_1_66_0。我不知道为什么它不起作用。
显示的错误是: make:***没有规则将目标“ /boost_1_66_0/boost/variant.hpp”设为“ build / room.o”。停止。
CC=g++
CFLAGS=-std=c++11
TARGET=make
TARGET_TEST=maketest
BUILD_DIR = ./build
SRC_DIR = ./src
INCLUDE_DIR = ./include
BOOST_ROOT = /home/yagami/Downloads/boost_1_66_0
${BUILD_DIR}/${TARGET}: ${BUILD_DIR}/dice.o ${BUILD_DIR}/player.o ${BUILD_DIR}/mage.o ${BUILD_DIR}/lucky.o ${BUILD_DIR}/ranger.o ${BUILD_DIR}/warrior.o ${BUILD_DIR}/enemy.o ${BUILD_DIR}/slime.o ${BUILD_DIR}/gnome.o ${BUILD_DIR}/pumpkin.o ${BUILD_DIR}/skeleton.o ${BUILD_DIR}/wolf.o ${BUILD_DIR}/boss.o ${BUILD_DIR}/basic_room.o ${BUILD_DIR}/pitfall_random.o ${BUILD_DIR}/abism_death_room.o ${BUILD_DIR}/dmg_npc.o ${BUILD_DIR}/mimic_death_room.o ${BUILD_DIR}/life_elixir.o ${BUILD_DIR}/life_fairy.o ${BUILD_DIR}/life_potion.o ${BUILD_DIR}/history_room.o ${BUILD_DIR}/left_right.o ${BUILD_DIR}/quiz_room.o ${BUILD_DIR}/tip_room.o ${BUILD_DIR}/xp_room.o ${BUILD_DIR}/battle_room.o ${BUILD_DIR}/room.o ${BUILD_DIR}/event.o ${BUILD_DIR}/event_battle.o ${BUILD_DIR}/event_interaction.o ${BUILD_DIR}/inicializer.o {BUILD_DIR}/main.o
${CC} ${CFLAGS} -o ${BUILD_DIR}/${TARGET} ${BUILD_DIR}/*.o
${BUILD_DIR}/dice.o: ${INCLUDE_DIR}/dice/dice.hpp ${SRC_DIR}/dice/dice.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -c ${SRC_DIR}/dice/dice.cpp -o ${BUILD_DIR}/dice.o
${BUILD_DIR}/player.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${SRC_DIR}/player/player.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -c ${SRC_DIR}/player/player.cpp -o ${BUILD_DIR}/player.o
${BUILD_DIR}/mage.o: ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/player/mage.hpp ${SRC_DIR}/player/mage.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -c ${SRC_DIR}/player/mage.cpp -o ${BUILD_DIR}/mage.o
${BUILD_DIR}/lucky.o: ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/player/lucky.hpp ${SRC_DIR}/player/lucky.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -c ${SRC_DIR}/player/lucky.cpp -o ${BUILD_DIR}/lucky.o
${BUILD_DIR}/ranger.o: ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/player/ranger.hpp ${SRC_DIR}/player/ranger.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -c ${SRC_DIR}/player/ranger.cpp -o ${BUILD_DIR}/ranger.o
${BUILD_DIR}/warrior.o: ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/player/warrior.hpp ${SRC_DIR}/player/warrior.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -c ${SRC_DIR}/player/warrior.cpp -o ${BUILD_DIR}/warrior.o
${BUILD_DIR}/enemy.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/enemies/enemy.hpp ${SRC_DIR}/enemies/enemy.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/enemies/ -c ${SRC_DIR}/enemies/enemy.cpp -o ${BUILD_DIR}/enemy.o
${BUILD_DIR}/slime.o: ${INCLUDE_DIR}/enemies/enemy.hpp ${INCLUDE_DIR}/enemies/slime.hpp ${SRC_DIR}/enemies/slime.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/enemies/ -c ${SRC_DIR}/enemies/slime.cpp -o ${BUILD_DIR}/slime.o
${BUILD_DIR}/gnome.o: ${INCLUDE_DIR}/enemies/enemy.hpp ${INCLUDE_DIR}/enemies/gnome.hpp ${SRC_DIR}/enemies/gnome.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/enemies/ -c ${SRC_DIR}/enemies/gnome.cpp -o ${BUILD_DIR}/gnome.o
${BUILD_DIR}/pumpkin.o: ${INCLUDE_DIR}/enemies/enemy.hpp ${INCLUDE_DIR}/enemies/pumpkin.hpp ${SRC_DIR}/enemies/pumpkin.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/enemies/ -c ${SRC_DIR}/enemies/pumpkin.cpp -o ${BUILD_DIR}/pumpkin.o
${BUILD_DIR}/skeleton.o: ${INCLUDE_DIR}/enemies/enemy.hpp ${INCLUDE_DIR}/enemies/skeleton.hpp ${SRC_DIR}/enemies/skeleton.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/enemies/ -c ${SRC_DIR}/enemies/skeleton.cpp -o ${BUILD_DIR}/skeleton.o
${BUILD_DIR}/wolf.o: ${INCLUDE_DIR}/enemies/enemy.hpp ${INCLUDE_DIR}/enemies/wolf.hpp ${SRC_DIR}/enemies/wolf.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/enemies/ -c ${SRC_DIR}/enemies/wolf.cpp -o ${BUILD_DIR}/wolf.o
${BUILD_DIR}/boss.o: ${INCLUDE_DIR}/enemies/enemy.hpp ${INCLUDE_DIR}/enemies/boss.hpp ${SRC_DIR}/enemies/boss.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/enemies/ -c ${SRC_DIR}/enemies/boss.cpp -o ${BUILD_DIR}/boss.o
${BUILD_DIR}/basic_room.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${SRC_DIR}/basic_room/basic_room.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/basic_room/ -c ${SRC_DIR}/basic_room/basic_room.cpp -o ${BUILD_DIR}/basic_room.o
${BUILD_DIR}/pitfall_random.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${INCLUDE_DIR}/basic_room/pitfall_random.hpp ${SRC_DIR}/basic_room/pitfall_random.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/basic_room/ -c ${SRC_DIR}/basic_room/pitfall_random.cpp -o ${BUILD_DIR}/pitfall_random.o
${BUILD_DIR}/abism_death_room.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${INCLUDE_DIR}/basic_room/abism_death_room.hpp ${SRC_DIR}/basic_room/abism_death_room.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/basic_room/ -c ${SRC_DIR}/basic_room/abism_death_room.cpp -o ${BUILD_DIR}/abism_death_room.o
${BUILD_DIR}/dmg_npc.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${INCLUDE_DIR}/basic_room/dmg_npc.hpp ${SRC_DIR}/basic_room/dmg_npc.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/basic_room/ -c ${SRC_DIR}/basic_room/dmg_npc.cpp -o ${BUILD_DIR}/dmg_npc.o
${BUILD_DIR}/mimic_death_room.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${INCLUDE_DIR}/basic_room/mimic_death_room.hpp ${SRC_DIR}/basic_room/mimic_death_room.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/basic_room/ -c ${SRC_DIR}/basic_room/mimic_death_room.cpp -o ${BUILD_DIR}/mimic_death_room.o
${BUILD_DIR}/life_elixir.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${INCLUDE_DIR}/basic_room/life_elixir.hpp ${SRC_DIR}/basic_room/life_elixir.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/basic_room/ -c ${SRC_DIR}/basic_room/life_elixir.cpp -o ${BUILD_DIR}/life_elixir.o
${BUILD_DIR}/life_fairy.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${INCLUDE_DIR}/basic_room/life_fairy.hpp ${SRC_DIR}/basic_room/life_fairy.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/basic_room/ -c ${SRC_DIR}/basic_room/life_fairy.cpp -o ${BUILD_DIR}/life_fairy.o
${BUILD_DIR}/life_potion.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${INCLUDE_DIR}/basic_room/life_potion.hpp ${SRC_DIR}/basic_room/life_potion.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/basic_room/ -c ${SRC_DIR}/basic_room/life_potion.cpp -o ${BUILD_DIR}/life_potion.o
${BUILD_DIR}/history_room.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${INCLUDE_DIR}/basic_room/history_room.hpp ${SRC_DIR}/basic_room/history_room.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/basic_room/ -c ${SRC_DIR}/basic_room/history_room.cpp -o ${BUILD_DIR}/history_room.o
${BUILD_DIR}/left_right.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${INCLUDE_DIR}/basic_room/left_right.hpp ${SRC_DIR}/basic_room/left_right.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/basic_room/ -c ${SRC_DIR}/basic_room/left_right.cpp -o ${BUILD_DIR}/left_right.o
${BUILD_DIR}/quiz_room.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${INCLUDE_DIR}/basic_room/quiz_room.hpp ${SRC_DIR}/basic_room/quiz_room.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/basic_room/ -c ${SRC_DIR}/basic_room/quiz_room.cpp -o ${BUILD_DIR}/quiz_room.o
${BUILD_DIR}/tip_room.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${INCLUDE_DIR}/basic_room/tip_room.hpp ${SRC_DIR}/basic_room/tip_room.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/basic_room/ -c ${SRC_DIR}/basic_room/tip_room.cpp -o ${BUILD_DIR}/tip_room.o
${BUILD_DIR}/xp_room.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${INCLUDE_DIR}/basic_room/xp_room.hpp ${SRC_DIR}/basic_room/xp_room.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/basic_room/ -c ${SRC_DIR}/basic_room/xp_room.cpp -o ${BUILD_DIR}/xp_room.o
${BUILD_DIR}/battle_room.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/enum_winner/enum_winner.hpp ${INCLUDE_DIR}/player/mage.hpp ${INCLUDE_DIR}/player/lucky.hpp ${INCLUDE_DIR}/player/ranger.hpp ${INCLUDE_DIR}/player/warrior.hpp ${INCLUDE_DIR}/enemies/enemy.hpp ${INCLUDE_DIR}/enemies/slime.hpp ${INCLUDE_DIR}/enemies/pumpkin.hpp ${INCLUDE_DIR}/enemies/skeleton.hpp ${INCLUDE_DIR}/enemies/wolf.hpp ${INCLUDE_DIR}/enemies/boss.hpp ${INCLUDE_DIR}/battle_room/battle_room.hpp ${SRC_DIR}/battle_room/battle_room.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/enum_winner/ -I ${INCLUDE_DIR}/enemies/ -I ${INCLUDE_DIR}/battle_room/ -c ${SRC_DIR}/battle_room/battle_room.cpp -o ${BUILD_DIR}/battle_room.o
${BUILD_DIR}/room.o: ${BOOST_ROOT}/boost/variant.hpp ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_THRID}/boost_1_66_0/boost/variant.hpp ${INCLUDE_DIR}/battle_room/battle_room.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${INCLUDE_DIR}/room/room.hpp ${SRC_DIR}/room/room.cpp
${CC} ${CFLAGS} -I ${BOOST_ROOT} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/battle_room/ -I ${INCLUDE_DIR}/basic_room/ -I ${INCLUDE_DIR}/room/ -c ${SRC_DIR}/basic_room/room.cpp -o ${BUILD_DIR}/room.o
${BUILD_DIR}/event.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/enum_type/enum_type.hpp ${INCLUDE_DIR}/room/room.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/room/player.hpp ${INCLUDE_DIR}/event/event.hpp ${INCLUDE_DIR}/event/event.hpp ${SRC_DIR}/event/event.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ ${INCLUDE_DIR}/enum_type/ -I ${INCLUDE_DIR}/room/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/enemy/ -I ${INCLUDE_DIR}/event/ -c ${SRC_DIR}/event/event.cpp -o ${BUILD_DIR}/event.o
${BUILD_DIR}/event_battle.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/player/mage.hpp ${INCLUDE_DIR}/player/lucky.hpp ${INCLUDE_DIR}/player/ranger.hpp ${INCLUDE_DIR}/player/warrior.hpp ${INCLUDE_DIR}/enemies/enemy.hpp ${INCLUDE_DIR}/enemies/slime.hpp ${INCLUDE_DIR}/enemies/pumpkin.hpp ${INCLUDE_DIR}/enemies/skeleton.hpp ${INCLUDE_DIR}/enemies/wolf.hpp ${INCLUDE_DIR}/enemies/boss.hpp ${INCLUDE_DIR}/battle_room/battle_room.hpp ${INCLUDE_DIR}/event/event.hpp ${INCLUDE_DIR}/event/event_battle.hpp ${SRC_DIR}/event/event_battle.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ -I ${INCLUDE_DIR}/enemies/ ${INCLUDE_DIR}/battle_room/ -I ${INCLUDE_DIR}/event/ -c ${SRC_DIR}/event/event_battle.cpp -o ${BUILD_DIR}/event_battle.o
${BUILD_DIR}/event_interaction.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/basic_room/basic_room.hpp ${INCLUDE_DIR}/basic_room/pitfall_random.hpp ${INCLUDE_DIR}/basic_room/abism_death_room.hpp ${INCLUDE_DIR}/basic_room/dmg_npc.hpp ${INCLUDE_DIR}/basic_room/mimic_death_room.hpp ${INCLUDE_DIR}/basic_room/life_elixir.hpp ${INCLUDE_DIR}/basic_room/life_fairy.hpp ${INCLUDE_DIR}/basic_room/life_potion.hpp ${INCLUDE_DIR}/basic_room/history_room.hpp ${INCLUDE_DIR}/basic_room/left_right.hpp ${INCLUDE_DIR}/basic_room/quiz_room.hpp ${INCLUDE_DIR}/basic_room/tip_room.hpp ${INCLUDE_DIR}/basic_room/xp_room.hpp ${INCLUDE_DIR}/event/event.hpp ${INCLUDE_DIR}/event/event_interaction.hpp ${SRC_DIR}/event/event_interaction.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ ${INCLUDE_DIR}/basic_room/ -I ${INCLUDE_DIR}/event/ -c ${SRC_DIR}/event/event_interaction.cpp -o ${BUILD_DIR}/event_interaction.o
${BUILD_DIR}/inicializer.o: ${INCLUDE_DIR}/dice/dice.hpp ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_THIRD}/boost``_1_66_0/boost/variant.hpp ${INCLUDE_DIR}/event/event_battle.hpp ${INCLUDE_DIR}/event/event_interaction.hpp ${SRC_DIR}/inicializer/inicializer.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ ${INCLUDE_THIRD}/boost_1_66_0/ -I ${INCLUDE_DIR}/event/ -c ${SRC_DIR}/inicializer/inicializer.cpp -o ${BUILD_DIR}/inicializer.o
${BUILD_DIR}/main.o: ${INCLUDE_DIR}/player/player.hpp ${INCLUDE_DIR}/room/room.hpp ${INCLUDE_DIR}/event/event.hpp ${INCLUDE_DIR}/event/event_battle.hpp ${INCLUDE_DIR}/event/event_interaction.hpp ${INCLUDE_DIR}/inicializer/inicializer.hpp ${SRC_DIR}/main.cpp
${CC} ${CFLAGS} -I ${INCLUDE_DIR}/dice/ -I ${INCLUDE_DIR}/player/ ${INCLUDE_DIR}/room/ -I ${INCLUDE_DIR}/event/ -I ${INCLUDE_DIR}/inicializer/ -c ${SRC_DIR}/main.cpp -o ${BUILD_DIR}/main.o
# Rule for cleaning files generated during compilation.
# Call 'make clean' to use it
clean:
rm -f ${BUILD_DIR}/*