likeabeast 53 Posted February 15, 2017 Share Posted February 15, 2017 Hello devs, After i installed CORRECTLY level pet system , i started getting ~ /src/questlua.cpp:476: undefined reference to `quest::RegisterNewPetFunctionTable()' ~ root@AvgSrc:/usr/src/average-core/Srcs/Server/game/src # gmake clean root@AvgSrc:/usr/src/average-core/Srcs/Server/game/src # gmake -j20 compile acce.cpp compile BattleArena.cpp compile FSM.cpp compile MarkConvert.cpp compile MarkImage.cpp compile MarkManager.cpp compile OXEvent.cpp compile TrafficProfiler.cpp compile ani.cpp compile arena.cpp compile banword.cpp compile battle.cpp compile blend_item.cpp compile block_country.cpp compile buffer_manager.cpp compile building.cpp compile castle.cpp compile char.cpp compile char_affect.cpp compile char_battle.cpp compile char_change_empire.cpp compile char_horse.cpp compile char_item.cpp compile char_manager.cpp compile char_quickslot.cpp compile char_resist.cpp In file included from char.cpp:72: offlineshop_config.h:33:7: warning: no newline at end of file char.cpp:7750: warning: this decimal constant is unsigned only in ISO C90 char.cpp:7759: warning: this decimal constant is unsigned only in ISO C90 char.cpp:7785:2: warning: no newline at end of file compile char_skill.cpp acce.cpp: In function 'void FN_remove_material(CItem**, DWORD, int, int)': acce.cpp:87: warning: unused variable 'count' compile char_state.cpp acce.cpp: In function 'bool Acce_InformationInitialize()': acce.cpp:954: warning: comparison between signed and unsigned integer expressions compile PetSystem.cpp compile cmd.cpp compile cmd_emotion.cpp compile cmd_general.cpp compile cmd_gm.cpp compile cmd_oxevent.cpp compile config.cpp compile constants.cpp cmd_general.cpp:2993:2: warning: no newline at end of file compile crc32.cpp cmd_gm.cpp:2180:9: warning: multi-character character constant cmd_gm.cpp:4524:2: warning: no newline at end of file compile cube.cpp compile desc.cpp compile db.cpp PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()': PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone' PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)': PetSystem.cpp:552: warning: unused variable 'petVID' compile desc_client.cpp compile desc_manager.cpp char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const': char_item.cpp:638: warning: comparison is always false due to limited range of data type char_item.cpp:664: warning: comparison is always false due to limited range of data type compile desc_p2p.cpp char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)': char_item.cpp:1779: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'DWORD' char_item.cpp:1779: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'DWORD' char_item.cpp:1806: warning: suggest parentheses around assignment used as truth value char_item.cpp:2528: warning: format '%d' expects type 'int', but argument 6 has type 'long int' char_item.cpp:2532: warning: format '%d' expects type 'int', but argument 6 has type 'long int' char_item.cpp:2544: warning: format '%d' expects type 'int', but argument 5 has type 'long int' char_item.cpp:2548: warning: format '%d' expects type 'int', but argument 5 has type 'long int' char_item.cpp:2575: warning: format '%d' expects type 'int', but argument 6 has type 'long int' char_item.cpp:2583: warning: format '%d' expects type 'int', but argument 5 has type 'long int' char_item.cpp:5228: warning: comparison between signed and unsigned integer expressions char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)': char_item.cpp:5300: warning: unused variable 'wDestCell' char_item.cpp:5301: warning: unused variable 'bDestInven' char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)': char.cpp:3180: warning: comparison between signed and unsigned integer expressions char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)': char_item.cpp:6320: warning: array subscript has type 'char' char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)': char_item.cpp:6406: warning: comparison between signed and unsigned integer expressions char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)': char_item.cpp:6418: warning: comparison between signed and unsigned integer expressions char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)': char_item.cpp:7742: warning: unused variable 'itemType' char_item.cpp:7743: warning: unused variable 'itemSubType' compile dev_log.cpp compile dungeon.cpp compile empire_text_convert.cpp compile entity.cpp compile entity_view.cpp char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const': char_item.cpp:677: warning: control reaches end of non-void function cube.cpp: In function 'bool Cube_make(CHARACTER*)': cube.cpp:552: warning: comparison between signed and unsigned integer expressions cube.cpp: In function 'void Cube_MakeCubeInformationText()': cube.cpp:724: warning: unused variable 'npcVNUM' cube.cpp: In function 'bool Cube_InformationInitialize()': cube.cpp:791: warning: comparison between signed and unsigned integer expressions char.cpp: In member function 'DWORD CHARACTER::PetGetNextExp() const': char.cpp:7763: warning: control reaches end of non-void function compile event.cpp compile event_queue.cpp compile exchange.cpp compile file_loader.cpp cmd_general.cpp: In function 'void do_CubePetAdd(CHARACTER*, const char*, int, int)': cmd_general.cpp:2313: warning: unused variable 'strArg1' cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)': cmd_gm.cpp:3990: warning: NULL used in arithmetic compile fishing.cpp compile guild.cpp compile gm.cpp compile guild_manager.cpp char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)': char_item.cpp:6453: warning: 'pBuff' may be used uninitialized in this function compile guild_war.cpp compile horse_rider.cpp compile input.cpp compile horsename_manager.cpp compile input_auth.cpp compile input_db.cpp compile input_login.cpp cmd_gm.cpp: In function 'void do_mob_ld(CHARACTER*, const char*, int, int)': cmd_gm.cpp:855: warning: 'x' may be used uninitialized in this function cmd_gm.cpp:855: warning: 'y' may be used uninitialized in this function cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)': cmd_gm.cpp:4412: warning: 'cell' may be used uninitialized in this function cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)': cmd_gm.cpp:4032: warning: 'n' may be used uninitialized in this function compile input_main.cpp compile input_p2p.cpp compile input_teen.cpp In file included from input_db.cpp:50: offlineshop_config.h:33:7: warning: no newline at end of file input_db.cpp:2786:2: warning: no newline at end of file compile input_udp.cpp compile ip_ban.cpp compile item.cpp compile item_addon.cpp compile item_attribute.cpp compile item_manager.cpp compile item_manager_idrange.cpp compile locale.cpp compile locale_service.cpp compile log.cpp compile login_data.cpp compile lzo_manager.cpp compile marriage.cpp compile matrix_card.cpp compile messenger_manager.cpp compile mining.cpp input_p2p.cpp: In member function 'void CInputP2P::OfflineShopBuy(DESC*, const char*)': input_p2p.cpp:505: warning: unused variable 'p' compile mob_manager.cpp compile monarch.cpp compile motion.cpp input_main.cpp: In member function 'void CInputMain::BraveRequestPetName(CHARACTER*, const char*)': input_main.cpp:677: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'DWORD' input_main.cpp:677: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'DWORD' compile over9refine.cpp compile p2p.cpp compile packet_info.cpp compile party.cpp compile passpod.cpp compile pcbang.cpp compile polymorph.cpp compile priv_manager.cpp compile pvp.cpp compile questevent.cpp compile questlua.cpp compile questlua_affect.cpp compile questlua_arena.cpp compile questlua_ba.cpp compile questlua_building.cpp compile questlua_danceevent.cpp compile questlua_dungeon.cpp compile questlua_forked.cpp compile questlua_global.cpp compile questlua_game.cpp compile questlua_guild.cpp compile questlua_horse.cpp compile questlua_pet.cpp compile questlua_item.cpp compile questlua_marriage.cpp compile questlua_mgmt.cpp compile questlua_monarch.cpp compile questlua_npc.cpp compile questlua_oxevent.cpp compile questlua_party.cpp compile questlua_pc.cpp compile questlua_quest.cpp compile questlua_target.cpp compile questmanager.cpp compile questnpc.cpp compile questpc.cpp compile refine.cpp compile safebox.cpp compile regen.cpp compile sectree.cpp compile sectree_manager.cpp compile sequence.cpp compile shop.cpp questlua_npc.cpp: In function 'int quest::npc_get_vid_attack_mul(lua_State*)': questlua_npc.cpp:293: warning: unused variable 'q' questlua_npc.cpp: In function 'int quest::npc_set_vid_attack_mul(lua_State*)': questlua_npc.cpp:309: warning: unused variable 'q' questlua_npc.cpp: In function 'int quest::npc_get_vid_damage_mul(lua_State*)': questlua_npc.cpp:324: warning: unused variable 'q' questlua_npc.cpp: In function 'int quest::npc_set_vid_damage_mul(lua_State*)': questlua_npc.cpp:340: warning: unused variable 'q' compile skill.cpp compile start_position.cpp compile target.cpp compile text_file_loader.cpp compile trigger.cpp compile utils.cpp compile vector.cpp compile war_map.cpp compile wedding.cpp compile xmas_event.cpp utils.cpp: In function 'bool WildCaseCmp(const char*, const char*)': utils.cpp:248: warning: NULL used in arithmetic utils.cpp:260: warning: NULL used in arithmetic utils.cpp:274: warning: NULL used in arithmetic compile version.cpp compile panama.cpp compile threeway_war.cpp compile map_location.cpp questlua_pc.cpp: In function 'int quest::pc_get_special_ride_vnum(lua_State*)': questlua_pc.cpp:2547: warning: control reaches end of non-void function compile auth_brazil.cpp compile BlueDragon.cpp compile BlueDragon_Binder.cpp compile DragonLair.cpp compile questlua_dragonlair.cpp compile HackShield.cpp compile char_hackshield.cpp compile HackShield_Impl.cpp compile skill_power.cpp compile affect.cpp compile SpeedServer.cpp compile questlua_speedserver.cpp compile XTrapManager.cpp compile auction_manager.cpp compile FileMonitor_FreeBSD.cpp compile ClientPackageCryptInfo.cpp compile check_server.cpp compile cipher.cpp compile buff_on_attributes.cpp compile DragonSoul.cpp compile dragon_soul_table.cpp compile group_text_parse_tree.cpp compile char_dragonsoul.cpp compile questlua_dragonsoul.cpp compile shopEx.cpp compile shop_manager.cpp compile item_manager_read_tables.cpp compile offline_shop.cpp compile offlineshop_manager.cpp compile offlineshop_config.cpp compile New_PetSystem.cpp New_PetSystem.cpp:1324:2: warning: no newline at end of file compile questlua_petnew.cpp group_text_parse_tree.h: In constructor 'CGroupTextParseTreeLoader::CGroupTextParseTreeLoader()': group_text_parse_tree.h:93: warning: 'CGroupTextParseTreeLoader::m_dwcurLineIndex' will be initialized after group_text_parse_tree.h:91: warning: 'CGroupNode* CGroupTextParseTreeLoader::m_pRootGroupNode' group_text_parse_tree.cpp:5: warning: when initialized here In file included from offlineshop_config.cpp:5: offlineshop_config.h:33:7: warning: no newline at end of file offlineshop_config.cpp:248:2: warning: no newline at end of file ../../../Extern/include/cryptopp/algparam.h: In constructor 'CryptoPP::ConstByteArrayParameter::ConstByteArrayParameter(const T&, bool) [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]': ../../../Extern/include/cryptopp/filters.h:793: instantiated from here ../../../Extern/include/cryptopp/algparam.h:26: warning: unused variable 'cryptopp_assert_26' questlua_petnew.cpp:286:2: warning: no newline at end of file buff_on_attributes.cpp: In member function 'void CBuffOnAttributes::ChangeBuffValue(BYTE)': buff_on_attributes.cpp:113: warning: unused variable 'old_value' buff_on_attributes.cpp:114: warning: unused variable 'new_value' In file included from offlineshop_manager.cpp:29: offlineshop_config.h:33:7: warning: no newline at end of file offlineshop_manager.cpp:1077:2: warning: no newline at end of file ../../../Extern/include/cryptopp/algparam.h: In member function 'void CryptoPP::AlgorithmParametersTemplate<T>::MoveInto(void*) const [with T = CryptoPP::RandomNumberGenerator*]': cipher.cpp:397: instantiated from here ../../../Extern/include/cryptopp/algparam.h:322: warning: unused variable 'p' compile minilzo.c DragonSoul.cpp: In member function 'bool DSManager::ExtractDragonHeart(CHARACTER*, CItem*, CItem*)': DragonSoul.cpp:350: warning: unused variable 'sum' DragonSoul.cpp: In member function 'bool DSManager::PullOut(CHARACTER*, TItemPos, CItem*&, CItem*)': DragonSoul.cpp:435: warning: unused variable 'dwVnum' DragonSoul.cpp: In member function 'bool DSManager::DoRefineGrade(CHARACTER*, TItemPos (&)[15])': DragonSoul.cpp:555: warning: unused variable 'prob_sum' DragonSoul.cpp: In member function 'bool DSManager::DoRefineStep(CHARACTER*, TItemPos (&)[15])': DragonSoul.cpp:763: warning: unused variable 'sum' New_PetSystem.cpp: In member function 'void CNewPetActor::SetExp(DWORD, int)': New_PetSystem.cpp:321: warning: comparison between signed and unsigned integer expressions New_PetSystem.cpp:321: warning: comparison between signed and unsigned integer expressions New_PetSystem.cpp:330: warning: comparison between signed and unsigned integer expressions New_PetSystem.cpp:330: warning: comparison between signed and unsigned integer expressions New_PetSystem.cpp:340: warning: comparison between signed and unsigned integer expressions New_PetSystem.cpp:341: warning: comparison between signed and unsigned integer expressions New_PetSystem.cpp:361: warning: comparison between signed and unsigned integer expressions New_PetSystem.cpp:364: warning: comparison between signed and unsigned integer expressions New_PetSystem.cpp:367: warning: comparison between signed and unsigned integer expressions New_PetSystem.cpp:373: warning: comparison between signed and unsigned integer expressions New_PetSystem.cpp:374: warning: comparison between signed and unsigned integer expressions New_PetSystem.cpp:385: warning: comparison between signed and unsigned integer expressions New_PetSystem.cpp: In member function 'DWORD CNewPetActor::Summon(const char*, CItem*, bool)': New_PetSystem.cpp:529: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'DWORD' New_PetSystem.cpp:529: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'DWORD' New_PetSystem.cpp: In member function 'virtual bool CNewPetActor::_UpdateFollowAI()': New_PetSystem.cpp:645: warning: unused variable 'bDoMoveAlone' New_PetSystem.cpp: In member function 'CNewPetActor* CNewPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)': New_PetSystem.cpp:1229: warning: unused variable 'petVID' item_manager_read_tables.cpp: In member function 'bool ITEM_MANAGER::ReadMonsterDropItemGroup(const char*)': item_manager_read_tables.cpp:637: warning: unused variable 'pkGroup' item_manager_read_tables.cpp:627: warning: 'pkGroup' may be used uninitialized in this function ../../../Extern/include/cryptopp/misc.h: At global scope: ../../../Extern/include/cryptopp/misc.h:548: warning: 'std::string CryptoPP::StringNarrow(const wchar_t*, bool)' defined but not used linking ../game_r40250_32.... linking ../test OBJDIR/questlua.o: In function `quest::CQuestManager::InitializeLua()': /usr/src/average-core/Srcs/Server/game/src/questlua.cpp:476: undefined reference to `quest::RegisterNewPetFunctionTable()' OBJDIR/questlua.o: In function `quest::CQuestManager::InitializeLua()': /usr/src/average-core/Srcs/Server/game/src/questlua.cpp:476: undefined reference to `quest::RegisterNewPetFunctionTable()' gmake: *** [../test] Error 1 gmake: *** Waiting for unfinished jobs.... gmake: *** [../game_r40250_32] Error 1 Here is the makefile: Spoiler PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1) GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3 | cut -d'.' -f1) BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1) P4_VERSION = 40250 CC = g++ INCDIR = LIBDIR = BINDIR = .. OBJDIR = OBJDIR $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi) # Standard Setting LIBS = -pthread -lm -lmd # Removed -fno-rtti CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_ ifeq ($(GCC_VERSION), 4) CFLAGS += -mtune=i686 -fstack-protector-all else CFLAGS += -mcpu=i686 endif # boost INCDIR += -I../../../Extern/include/boost # DevIL INCDIR += -I../../libdevil LIBDIR += -L../../libdevil LIBS += -lIL -lpng -ltiff -lmng -llcms -ljpeg # MySQL #ifeq ($(BSD_VERSION), 7) INCDIR += -I../../libmysql/7.x-5.1.35 LIBDIR += -L../../libmysql/7.x-5.1.35 #else #INCDIR += -I../../libmysql/5.x-5.1.35 #LIBDIR += -L../../libmysql/5.x-5.1.35 #endif LIBS += -lmysqlclient -L/usr/local/lib/mysql -lz # Miscellaneous external libraries INCDIR += -I../../../Extern/include LIBDIR += -L../../../Extern/lib LIBS += -lcryptopp -lgtest # HackShield INCDIR += -I../../libhackshield/include LIBDIR += -L../../libhackshield/lib LIBS += -lanticpxsvr # XTrap INCDIR += -I../../libxtrap/include # openssl #INCDIR += -I/usr/include #LIBS += -lssl #LIBS += /usr/lib/libssl.a # Project Library INCDIR += -I../../liblua/include INCDIR += -I/usr/local/include INCDIR += -L/usr/local/lib/mysql INCDIR += -I../../libserverkey LIBDIR += -L../../libthecore/lib -L../../libpoly -L../../libsql -L../../libgame/lib -L../../liblua/lib -L../../libserverkey LIBDIR += -L/usr/local/lib LIBS += -lthecore -lpoly -llua -llualib -lsql -lgame -lserverkey USE_STACKTRACE = 0 ifeq ($(USE_STACKTRACE), 1) LIBS += /usr/local/lib/libexecinfo.a endif TARGET = $(BINDIR)/game_r$(P4_VERSION)_$(PLATFORM) CFILE = minilzo.c CPPFILE = acce.cpp BattleArena.cpp FSM.cpp MarkConvert.cpp MarkImage.cpp MarkManager.cpp OXEvent.cpp TrafficProfiler.cpp ani.cpp\ arena.cpp banword.cpp battle.cpp blend_item.cpp block_country.cpp buffer_manager.cpp building.cpp castle.cpp\ char.cpp char_affect.cpp char_battle.cpp char_change_empire.cpp char_horse.cpp char_item.cpp char_manager.cpp\ char_quickslot.cpp char_resist.cpp char_skill.cpp char_state.cpp PetSystem.cpp cmd.cpp cmd_emotion.cpp cmd_general.cpp\ cmd_gm.cpp cmd_oxevent.cpp config.cpp constants.cpp crc32.cpp cube.cpp db.cpp desc.cpp\ desc_client.cpp desc_manager.cpp desc_p2p.cpp dev_log.cpp dungeon.cpp empire_text_convert.cpp entity.cpp\ entity_view.cpp event.cpp event_queue.cpp exchange.cpp file_loader.cpp fishing.cpp gm.cpp guild.cpp\ guild_manager.cpp guild_war.cpp horse_rider.cpp horsename_manager.cpp input.cpp input_auth.cpp input_db.cpp\ input_login.cpp input_main.cpp input_p2p.cpp input_teen.cpp input_udp.cpp ip_ban.cpp\ item.cpp item_addon.cpp item_attribute.cpp item_manager.cpp item_manager_idrange.cpp locale.cpp\ locale_service.cpp log.cpp login_data.cpp lzo_manager.cpp marriage.cpp matrix_card.cpp\ messenger_manager.cpp mining.cpp mob_manager.cpp monarch.cpp motion.cpp over9refine.cpp p2p.cpp packet_info.cpp\ party.cpp passpod.cpp pcbang.cpp polymorph.cpp priv_manager.cpp pvp.cpp\ questevent.cpp questlua.cpp questlua_affect.cpp questlua_arena.cpp questlua_ba.cpp questlua_building.cpp\ questlua_danceevent.cpp questlua_dungeon.cpp questlua_forked.cpp questlua_game.cpp questlua_global.cpp\ questlua_guild.cpp questlua_horse.cpp questlua_pet.cpp questlua_item.cpp questlua_marriage.cpp questlua_mgmt.cpp\ questlua_monarch.cpp questlua_npc.cpp questlua_oxevent.cpp questlua_party.cpp questlua_pc.cpp\ questlua_quest.cpp questlua_target.cpp questmanager.cpp questnpc.cpp questpc.cpp\ refine.cpp regen.cpp safebox.cpp sectree.cpp sectree_manager.cpp sequence.cpp shop.cpp\ skill.cpp start_position.cpp target.cpp text_file_loader.cpp trigger.cpp utils.cpp vector.cpp war_map.cpp\ wedding.cpp xmas_event.cpp version.cpp panama.cpp threeway_war.cpp map_location.cpp auth_brazil.cpp\ BlueDragon.cpp BlueDragon_Binder.cpp DragonLair.cpp questlua_dragonlair.cpp\ HackShield.cpp HackShield_Impl.cpp char_hackshield.cpp skill_power.cpp affect.cpp\ SpeedServer.cpp questlua_speedserver.cpp XTrapManager.cpp\ auction_manager.cpp FileMonitor_FreeBSD.cpp ClientPackageCryptInfo.cpp cipher.cpp\ buff_on_attributes.cpp check_server.cpp dragon_soul_table.cpp DragonSoul.cpp\ group_text_parse_tree.cpp char_dragonsoul.cpp questlua_dragonsoul.cpp\ shop_manager.cpp shopEx.cpp item_manager_read_tables.cpp offline_shop.cpp offlineshop_manager.cpp offlineshop_config.cpp\ New_PetSystem.cpp questlua_petnew.cpp COBJS = $(CFILE:%.c=$(OBJDIR)/%.o) CPPOBJS = $(CPPFILE:%.cpp=$(OBJDIR)/%.o) MAINOBJ = $(OBJDIR)/main.o MAINCPP = main.cpp TESTOBJ = $(OBJDIR)/test.o TESTCPP = test.cpp TEST_TARGET = $(BINDIR)/test default: $(TARGET) $(TEST_TARGET) $(OBJDIR)/minilzo.o: minilzo.c @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@ @echo compile $< $(OBJDIR)/version.o: version.cpp @$(CC) $(CFLAGS) -D__P4_VERSION__=\"$(SVN_VERSION)\" -c $< -o $@ @echo compile $< $(OBJDIR)/%.o: %.cpp @echo compile $< @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@ limit_time: @echo update limit time @python update_limit_time.py $(TARGET): $(CPPOBJS) $(COBJS) $(MAINOBJ) @echo linking $(TARGET).... @$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(MAINOBJ) $(LIBS) -o $(TARGET) $(TEST_TARGET): $(TESTCPP) $(CPPOBJS) $(COBJS) $(TESTOBJ) @echo linking $(TEST_TARGET) @$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(TESTOBJ) $(LIBS) -o ../test clean: @rm -f $(COBJS) $(CPPOBJS) @rm -f $(BINDIR)/game_r* $(BINDIR)/conv tag: ctags *.cpp *.h *.c dep: makedepend -f Depend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(CPPFILE) $(CFILE) $(MAINCPP) $(TESTCPP) 2> /dev/null > Depend sinclude Depend I can provide you with any other information if is needed. Thanks. Link to comment Share on other sites More sharing options...
likeabeast 53 Posted February 15, 2017 Author Share Posted February 15, 2017 UP ! Link to comment Share on other sites More sharing options...
likeabeast 53 Posted February 15, 2017 Author Share Posted February 15, 2017 Bump Link to comment Share on other sites More sharing options...
likeabeast 53 Posted February 15, 2017 Author Share Posted February 15, 2017 @avres100 , You was right , thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now