missing project/build files
[client-tools.git] / src / game / server / application / SwgDatabaseServer / build / linux / Makefile
blob103694c5802d167b760df8b064fa209e85decc69
1 DEBUG_PLATFORM_CPP_FLAGS =-DLINUX -D_REENTRANT -D_XOPEN_SOUCE=500 -D_GNU_SOURCE $(PERSONAL_FLAGS)
2 RELEASE_PLATFORM_CPP_FLAGS =-DLINUX -D_REENTRANT -D_XOPEN_SOUCE=500 -D_GNU_SOURCE $(PERSONAL_FLAGS)
4 include ../../../../../build/linux/platformDefs.mak
5 include ../../../../../build/shared_unix/defs.mak
8 OUTPUT = SwgDatabaseServer
10 #######################################################
11 # standard defines
12 #######################################################
14 DEBUG_LINK_FLAGS +=-lpthread -ldl
15 RELEASE_LINK_FLAGS +=-lpthread -ldl
17 #######################################################
18 # includes & linked libraries
19 #######################################################
21 INCLUDE_DIRS = \
22 ../../src/linux \
23 ../../src/shared \
24 ../../src/shared/core \
25 ../../src/shared/buffers \
26 ../../include/public \
27 $(SHARED_DATABASE_INTERFACE_INCLUDE_PATH) \
28 $(SERVER_DATABASE_INCLUDE_PATH) \
29 $(COMMON_ENGINE_INCLUDES) \
30 $(SERVER_GAME_INCLUDE_PATH) \
31 $(SWG_SHARED_UTILITY_INCLUDE_PATH) \
32 $(SWG_SHARED_NETWORK_MESSAGES_INCLUDE_PATH) \
33 $(SWG_SERVER_NETWORK_MESSAGES_INCLUDE_PATH) \
34 $(SHARED_GAME_INCLUDE_PATH)
36 DEBUG_LINK_LIBRARIES = \
37 $(COMMON_ENGINE_DEBUG_LIBS) \
38 $(STL_LIB) \
39 $(ZLIB_LIB) \
40 $(PCRE_DEBUG_LIB)
42 DEBUG_SHARED_LIBRARIES= \
43 $(COMMAND_PARSER_DEBUG_LIB) \
44 $(SERVER_DATABASE_DEBUG_LIB) \
45 $(SHARED_DATABASE_INTERFACE_DEBUG_LIB) \
46 $(ORACLE_CLIENT_LIB) \
47 $(COMMON_ENGINE_SHARED_DEBUG_LIBS) \
48 $(SHARED_GAME_DEBUG_LIB) \
49 $(SKILL_SYSTEM_DEBUG_LIB) \
50 $(SWG_SHARED_UTILITY_DEBUG_LIB) \
51 $(SHARED_REGEX_DEBUG_LIB) \
52 $(TERRAIN_DEBUG_LIB) \
53 $(SWG_SHARED_NETWORK_MESSAGES_DEBUG_LIB) \
54 $(SWG_SERVER_NETWORK_MESSAGES_DEBUG_LIB) \
55 $(COMMAND_PARSER_DEBUG_LIB) \
56 $(SWG_SHARED_UTILITY_DEBUG_LIB) \
57 $(SHARED_GAME_DEBUG_LIB) \
58 $(SWG_SHARED_NETWORK_MESSAGES_DEBUG_LIB) \
59 $(SWG_SERVER_NETWORK_MESSAGES_DEBUG_LIB)
61 #######################################################
62 # Source file list
63 #######################################################
65 SHARED_SRC_LIST =$(shell find $$PWD/../../src/shared -name "*.cpp")
66 PLATFORM_SRC_LIST =$(shell find $$PWD/../../src/linux -name "*.cpp")
67 SRC_LIST =$(SHARED_SRC_LIST) $(PLATFORM_SRC_LIST)
69 #######################################################
70 # Custom build steps
71 #######################################################
73 debug_custom_step: ../../src/shared/generated/Schema.h ../../src/shared/generated/Encoder.cpp ../../src/shared/generated/Decoder.cpp ../../src/shared/generated/LoadObject.cpp ../../src/shared/generated/ObjectQueries.cpp ../../src/shared/generated/ObjectQueries.h
75 depend_custom_step: ../../src/shared/generated/Schema.h ../../src/shared/generated/Encoder.cpp ../../src/shared/generated/Decoder.cpp ../../src/shared/generated/LoadObject.cpp ../../src/shared/generated/ObjectQueries.cpp ../../src/shared/generated/ObjectQueries.h
78 ../../src/shared/generated/Schema.h: ../../src/shared/generated/Schema_h.template ../../../../../../engine/server/library/codegen/make_schema_h.pl ../../../../database/schema/*.tab
79 cp ../../src/shared/generated/Schema_h.template ../../src/shared/generated/Schema.h
80 chmod +w ../../src/shared/generated/Schema.h
81 perl ../../../../../../engine/server/library/codegen/make_schema_h.pl --ddldirectory ../../../../database/schema --output ../../src/shared/generated/Schema.h
83 ../../src/shared/generated/Encoder.cpp: ../../src/shared/generated/Encoder_cpp.template ../../../../../../engine/server/library/codegen/package_data.txt ../../../../../../engine/server/library/codegen/make_packages.pl
84 cp ../../src/shared/generated/Encoder_cpp.template ../../src/shared/generated/Encoder.cpp
85 chmod +w ../../src/shared/generated/Encoder.cpp
86 perl ../../../../../../engine/server/library/codegen/make_packages.pl --datafile ../../../../../../engine/server/library/codegen/package_data.txt --encoder ../../src/shared/generated/Encoder.cpp
88 ../../src/shared/generated/Decoder.cpp: ../../src/shared/generated/Decoder_cpp.template ../../../../../../engine/server/library/codegen/package_data.txt ../../../../../../engine/server/library/codegen/make_packages.pl
89 cp ../../src/shared/generated/Decoder_cpp.template ../../src/shared/generated/Decoder.cpp
90 chmod +w ../../src/shared/generated/Decoder.cpp
91 perl ../../../../../../engine/server/library/codegen/make_packages.pl --datafile ../../../../../../engine/server/library/codegen/package_data.txt --decoder ../../src/shared/generated/Decoder.cpp
93 ../../src/shared/generated/LoadObject.cpp: ../../src/shared/generated/LoadObject_cpp.template ../../../../../../engine/server/library/codegen/package_data.txt ../../../../../../engine/server/library/codegen/make_packages.pl
94 cp ../../src/shared/generated/LoadObject_cpp.template ../../src/shared/generated/LoadObject.cpp
95 chmod +w ../../src/shared/generated/LoadObject.cpp
96 perl ../../../../../../engine/server/library/codegen/make_packages.pl --datafile ../../../../../../engine/server/library/codegen/package_data.txt --loadobject ../../src/shared/generated/LoadObject.cpp
98 ../../src/shared/generated/ObjectQueries.cpp: ../../src/shared/generated/ObjectQueries_cpp.template ../../../../../../engine/server/library/codegen/make_queries.pl ../../../../database/packages/persister.plsqlh
99 cp ../../src/shared/generated/ObjectQueries_cpp.template ../../src/shared/generated/ObjectQueries.cpp
100 chmod +w ../../src/shared/generated/ObjectQueries.cpp
101 perl ../../../../../../engine/server/library/codegen/make_queries.pl --plsql ../../../../database/packages/persister.plsqlh --source ../../src/shared/generated/ObjectQueries.cpp
103 ../../src/shared/generated/ObjectQueries.h: ../../src/shared/generated/ObjectQueries_h.template ../../../../../../engine/server/library/codegen/make_queries.pl ../../../../database/packages/persister.plsqlh
104 cp ../../src/shared/generated/ObjectQueries_h.template ../../src/shared/generated/ObjectQueries.h
105 chmod +w ../../src/shared/generated/ObjectQueries.h
106 perl ../../../../../../engine/server/library/codegen/make_queries.pl --plsql ../../../../database/packages/persister.plsqlh --header ../../src/shared/generated/ObjectQueries.h
109 #######################################################
110 # include the common makefile
111 #######################################################
113 include ../../../../../build/shared_unix/application.mak