Initial Commit
[wakedown.gameserver.git] / GameServer.make
blobfdc93a282ed54c8100710f480bd4112eb0414080
3 # Warning: This is an automatically generated file, do not edit!
5 srcdir=.
6 top_srcdir=.
8 include $(top_srcdir)/Makefile.include
9 include $(top_srcdir)/config.make
11 ifeq ($(CONFIG),DEBUG)
12 ASSEMBLY_COMPILER_COMMAND = mcs
13 ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug -define:DEBUG
14 ASSEMBLY = bin/Debug/GameServer.exe
15 ASSEMBLY_MDB = $(ASSEMBLY).mdb
16 COMPILE_TARGET = exe
17 PROJECT_REFERENCES =
18 BUILD_DIR = bin/Debug
20 DB4OBJECTS_DB4O_DLL_SOURCE=dll/Db4objects.Db4o.dll
22 endif
24 ifeq ($(CONFIG),RELEASE)
25 ASSEMBLY_COMPILER_COMMAND = mcs
26 ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+
27 ASSEMBLY = bin/Release/GameServer.exe
28 ASSEMBLY_MDB =
29 COMPILE_TARGET = exe
30 PROJECT_REFERENCES =
31 BUILD_DIR = bin/Release
33 DB4OBJECTS_DB4O_DLL_SOURCE=dll/Db4objects.Db4o.dll
35 endif
38 PROGRAMFILES = \
39 $(DB4OBJECTS_DB4O_DLL)
41 BINARIES = \
42 $(GAMESERVER)
46 GAMESERVER = $(BUILD_DIR)/gameserver
47 DB4OBJECTS_DB4O_DLL = $(BUILD_DIR)/Db4objects.Db4o.dll
50 FILES = \
51 Main.cs \
52 AssemblyInfo.cs \
53 ConsoleUI.cs \
54 GameComponents/Character.cs \
55 GameComponents/Item.cs \
56 GameComponents/MOB.cs \
57 GameComponents/Magic.cs \
58 GameComponents/Skill.cs
60 DATA_FILES =
62 RESOURCES =
64 EXTRAS = \
65 GameServer.userprefs \
66 GameServer.usertasks \
67 Packages.mdse \
68 GameServer.make \
69 autogen.sh \
70 configure.ac \
71 gameserver.in \
72 config.log \
73 config.make \
74 configure \
75 gameserver \
76 rules.make \
77 bin/Debug/GameServer.exe.mdb \
78 bin/Debug/gameserver \
79 data/gameserver.in \
80 gameserver.in
82 REFERENCES = \
83 System
85 DLL_REFERENCES = \
86 dll/Db4objects.Db4o.dll
88 CLEANFILES += $(PROGRAMFILES) $(BINARIES)
90 #Targets
91 all-local: $(ASSEMBLY) $(PROGRAMFILES) $(BINARIES) $(top_srcdir)/config.make
93 $(GAMESERVER): gameserver
94 mkdir -p $(BUILD_DIR)
95 cp '$<' '$@'
96 chmod u+x '$@'
98 $(DB4OBJECTS_DB4O_DLL): $(DB4OBJECTS_DB4O_DLL_SOURCE)
99 mkdir -p $(BUILD_DIR)
100 cp '$<' '$@'
104 gameserver: gameserver.in $(top_srcdir)/config.make
105 sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," < gameserver.in > gameserver
108 $(build_xamlg_list): %.xaml.g.cs: %.xaml
109 xamlg '$<'
111 $(build_resx_resources) : %.resources: %.resx
112 resgen '$<' '$@'
116 $(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list)
117 make pre-all-local-hook prefix=$(prefix)
118 mkdir -p $(dir $(ASSEMBLY))
119 make $(CONFIG)_BeforeBuild
120 $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
121 make $(CONFIG)_AfterBuild
122 make post-all-local-hook prefix=$(prefix)
125 install-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(GAMESERVER) $(DB4OBJECTS_DB4O_DLL)
126 make pre-install-local-hook prefix=$(prefix)
127 mkdir -p $(prefix)/lib/$(PACKAGE)
128 cp $(ASSEMBLY) $(ASSEMBLY_MDB) $(prefix)/lib/$(PACKAGE)
129 mkdir -p $(prefix)/bin
130 test -z '$(GAMESERVER)' || cp $(GAMESERVER) $(prefix)/bin
131 test -z '$(DB4OBJECTS_DB4O_DLL)' || cp $(DB4OBJECTS_DB4O_DLL) $(prefix)/lib/$(PACKAGE)
132 make post-install-local-hook prefix=$(prefix)
134 uninstall-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(GAMESERVER) $(DB4OBJECTS_DB4O_DLL)
135 make pre-uninstall-local-hook prefix=$(prefix)
136 rm -f $(prefix)/lib/$(PACKAGE)/$(notdir $(ASSEMBLY))
137 test -z '$(ASSEMBLY_MDB)' || rm -f $(prefix)/lib/$(PACKAGE)/$(notdir $(ASSEMBLY_MDB))
138 test -z '$(GAMESERVER)' || rm -f $(prefix)/bin/$(notdir $(GAMESERVER))
139 test -z '$(DB4OBJECTS_DB4O_DLL)' || rm -f $(prefix)/lib/$(PACKAGE)/$(notdir $(DB4OBJECTS_DB4O_DLL))
140 make post-uninstall-local-hook prefix=$(prefix)