Guest User

Untitled

a guest
May 10th, 2020
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CC = c++
  2. INCDIR =
  3. LIBDIR =
  4. BINDIR = ..
  5. OBJDIR = .obj
  6. $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
  7.  
  8. ### CFLAGS
  9. CFLAGS = -w -O3 -ggdb -g -gdwarf -std=c++14 -pipe -mtune=i386 -fstack-protector -m32 -static -D_THREAD_SAFE
  10. ### END
  11.  
  12. ### LIBS FROM ../EXTERN and LOCAL/INCLUDE
  13. # boost (for boost, you need to install boost from PuTTY. Example: pkg install boost-libs).
  14. INCDIR += -I/usr/local/include
  15. # GSL: Guideline Support Library
  16. INCDIR += -I../../../extern/gsl/include
  17. # cryptopp (if cryptopp doesn't work, you need download src cryptopp 5.6.5 from https://github.com/weidai11/cryptopp/releases/tag/CRYPTOPP_5_6_5 and recompile with your actually compiller (g++/c++).
  18. INCDIR += -I../../../extern/cryptopp
  19. LIBDIR += -L../../../extern/cryptopp/lib
  20. LIBS += -lcryptopp
  21. # devil (for that, you need to install devIL from PuTTY. Example: pkg install devil).
  22. INCDIR += -I../../../local/include
  23. LIBDIR += -L/usr/local/lib
  24. LIBS += -lil -lpng -ltiff -lmng -llcms -ljpeg -ljbig -llzma
  25. # minilzo
  26. INCDIR += -I../../../extern/minilzo
  27. LIBDIR += -L../../../extern/minilzo/lib
  28. LIBS += -lminilzo -lmd
  29. # mysql
  30. INCDIR += -I/usr/local/include/mysql
  31. LIBDIR += -L../../../extern/mysql/lib
  32. LIBS += -lmysqlclient -lz -pthread -lm -lssl -lcrypto
  33. ### END
  34.  
  35. ### LIBS FROM ../SOURCE/LIB
  36. # libgame
  37. INCDIR += -I../../lib/libgame
  38. LIBDIR += -L../../lib/libgame/lib
  39. LIBS += -lgame
  40. # libpoly
  41. INCDIR += -I../../lib/libpoly
  42. LIBDIR += -L../../lib/libpoly/lib
  43. LIBS += -lpoly
  44. # libsql
  45. INCDIR += -I../../lib/libsql
  46. LIBDIR += -L../../lib/libsql/lib
  47. LIBS += -lsql
  48. # libthecore
  49. INCDIR += -I../../lib/libthecore
  50. LIBDIR += -L../../lib/libthecore/lib
  51. LIBS += -lthecore
  52. # lua
  53. INCDIR += -I../../../extern/lua/lua
  54. LIBDIR += -L../../../extern/lua/lib
  55. LIBS += -llua
  56. ### END
  57.  
  58. CPP = abuse.cpp\
  59. activity.cpp\
  60. affect.cpp\
  61. ani.cpp\
  62. arena.cpp\
  63. banword.cpp\
  64. battle.cpp\
  65. BattleArena.cpp\
  66. blend_item.cpp\
  67. BlueDragon.cpp\
  68. BlueDragon_Binder.cpp\
  69. buff_on_attributes.cpp\
  70. buffer_manager.cpp\
  71. building.cpp\
  72. char.cpp\
  73. char_affect.cpp\
  74. char_battle.cpp\
  75. char_change_empire.cpp\
  76. char_dragonsoul.cpp\
  77. char_gaya.cpp\
  78. char_horse.cpp\
  79. char_item.cpp\
  80. char_manager.cpp\
  81. char_quickslot.cpp\
  82. char_resist.cpp\
  83. char_skill.cpp\
  84. char_state.cpp\
  85. cmd.cpp\
  86. cmd_emotion.cpp\
  87. cmd_general.cpp\
  88. cmd_gm.cpp\
  89. cmd_oxevent.cpp\
  90. config.cpp\
  91. constants.cpp\
  92. crc32.cpp\
  93. cube.cpp\
  94. damage_top.cpp\
  95. db.cpp\
  96. desc.cpp\
  97. desc_client.cpp\
  98. desc_manager.cpp\
  99. desc_p2p.cpp\
  100. dragon_soul_table.cpp\
  101. DragonLair.cpp\
  102. DragonSoul.cpp\
  103. dungeon.cpp\
  104. empire_text_convert.cpp\
  105. entity.cpp\
  106. entity_view.cpp\
  107. event.cpp\
  108. event_queue.cpp\
  109. exchange.cpp\
  110. file_loader.cpp\
  111. fishing.cpp\
  112. FSM.cpp\
  113. gm.cpp\
  114. group_text_parse_tree.cpp\
  115. guild.cpp\
  116. guild_manager.cpp\
  117. guild_war.cpp\
  118. horse_rider.cpp\
  119. horsename_manager.cpp\
  120. input.cpp\
  121. input_api.cpp\
  122. input_auth.cpp\
  123. input_db.cpp\
  124. input_login.cpp\
  125. input_main.cpp\
  126. input_p2p.cpp\
  127. inventory.cpp\
  128. item.cpp\
  129. item_addon.cpp\
  130. item_attribute.cpp\
  131. item_manager.cpp\
  132. item_manager_idrange.cpp\
  133. item_manager_read_tables.cpp\
  134. locale.cpp\
  135. locale_service.cpp\
  136. log.cpp\
  137. login_data.cpp\
  138. lzo_manager.cpp\
  139. main.cpp\
  140. map_location.cpp\
  141. MarkConvert.cpp\
  142. MarkImage.cpp\
  143. MarkManager.cpp\
  144. marriage.cpp\
  145. MeleyLair.cpp\
  146. messenger_manager.cpp\
  147. mining.cpp\
  148. mob_manager.cpp\
  149. motion.cpp\
  150. MountSystem.cpp\
  151. nearby_scanner.cpp\
  152. New_PetSystem.cpp\
  153. OXEvent.cpp\
  154. p2p.cpp\
  155. packet_info.cpp\
  156. party.cpp\
  157. PetSystem.cpp\
  158. polymorph.cpp\
  159. priv_manager.cpp\
  160. pvp.cpp\
  161. questevent.cpp\
  162. questlua.cpp\
  163. questlua_affect.cpp\
  164. questlua_arena.cpp\
  165. questlua_battleArena.cpp\
  166. questlua_building.cpp\
  167. questlua_danceevent.cpp\
  168. questlua_dragonlair.cpp\
  169. questlua_dragonsoul.cpp\
  170. questlua_dungeon.cpp\
  171. questlua_game.cpp\
  172. questlua_global.cpp\
  173. questlua_guild.cpp\
  174. questlua_horse.cpp\
  175. questlua_item.cpp\
  176. questlua_marriage.cpp\
  177. questlua_MeleyLair.cpp\
  178. questlua_npc.cpp\
  179. questlua_oxevent.cpp\
  180. questlua_party.cpp\
  181. questlua_pc.cpp\
  182. questlua_pet.cpp\
  183. questlua_petnew.cpp\
  184. questlua_quest.cpp\
  185. questlua_support.cpp\
  186. questlua_target.cpp\
  187. questlua_TempleOchao.cpp\
  188. questmanager.cpp\
  189. questnpc.cpp\
  190. questpc.cpp\
  191. reborn.cpp\
  192. refine.cpp\
  193. regen.cpp\
  194. safebox.cpp\
  195. sectree.cpp\
  196. sectree_manager.cpp\
  197. shop.cpp\
  198. shop_manager.cpp\
  199. shopEx.cpp\
  200. skill.cpp\
  201. skill_power.cpp\
  202. snow_flake_flr.cpp\
  203. start_position.cpp\
  204. SupportSystem.cpp\
  205. target.cpp\
  206. TempleOchao.cpp\
  207. text_file_loader.cpp\
  208. trigger.cpp\
  209. utils.cpp\
  210. vector.cpp\
  211. war_map.cpp\
  212. wedding.cpp\
  213. whisper_admin.cpp\
  214. cipher.cpp\
  215.  
  216. CPPOBJS = $(CPP:%.cpp=$(OBJDIR)/%.o)
  217.  
  218. GAME_TARGET = $(BINDIR)/game
  219.  
  220. default: $(GAME_TARGET)
  221.  
  222. $(OBJDIR)/%.o: %.cpp
  223. @echo -e "\033[0;32m [OK] \033[0m" $<
  224. @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
  225.  
  226. $(GAME_TARGET): $(CPPOBJS)
  227. @echo linking $(GAME_TARGET)
  228. @$(CC) $(CFLAGS) $(LIBDIR) $(CPPOBJS) $(LIBS) -o $(GAME_TARGET)
  229.  
  230. clean:
  231. @rm -f $(CPPOBJS)
  232. @rm -f $(BINDIR)/game* $(BINDIR)/conv
  233.  
  234. tag:
  235. ctags *.cpp *.h
RAW Paste Data