jam rules

This commit is contained in:
Enno Rehling 2003-04-27 17:03:12 +00:00
parent 9122b84f73
commit af0d89f4f9
14 changed files with 363 additions and 0 deletions

4
src/Jamfile Normal file
View File

@ -0,0 +1,4 @@
SubDir TOP ;
SubInclude TOP common ;
SubInclude TOP eressea ;
SubInclude TOP mapper ;

56
src/Jamrules Normal file
View File

@ -0,0 +1,56 @@
if ! $(DISTCC_HOSTS) {
} else {
CC = distcc $(CC) ;
C++ = distcc $(C++) ;
Echo Compiling with distcc ;
}
if ! $(CCACHE_DIR) {
} else {
CC = ccache $(CC) ;
C++ = ccache $(C++) ;
Echo Compiling with ccache ;
}
CCFLAGS += -Wall ;
CCFLAGS += -Wwrite-strings
-Wstrict-prototypes
-Werror-implicit-function-declaration
-Wno-char-subscripts
;
rule TargetDirectory
{
# Now set up SEARCH_SOURCE, LOCATE_TARGET, SOURCE_GRIST
# These can be reset if needed. For example, if the source
# directory should not hold object files, LOCATE_TARGET can
# subsequently be redefined.
local path = [ FDirName $(SUBDIR) $(TARGET_PREFIX) ] ;
SEARCH_SOURCE = $(SUBDIR) ;
LOCATE_SOURCE = $(ALL_LOCATE_TARGET) $(path) ;
LOCATE_TARGET = $(ALL_LOCATE_TARGET) $(path) ;
SOURCE_GRIST = $(path) ;
if $(DEBUG) = 1 {
SubDirCcFlags -g ;
SubDirC++Flags -g ;
}
else {
SubDirCcFlags -DNDEBUG ;
SubDirC++Flags -DNDEBUG ;
}
}
if ! $(DEBUG) {
ECHO Assuming DEBUG=1 ;
DEBUG = 1 ;
}
if $(DEBUG) = 0 {
TARGET_PREFIX = Release ;
}
else {
TARGET_PREFIX = Debug ;
}

11
src/common/Jamfile Normal file
View File

@ -0,0 +1,11 @@
SubDir TOP common ;
SubInclude TOP common kernel ;
SubInclude TOP common gamecode ;
SubInclude TOP common spells ;
SubInclude TOP common races ;
SubInclude TOP common triggers ;
SubInclude TOP common util ;
SubInclude TOP common attributes ;
SubInclude TOP common modules ;
SubInclude TOP common items ;

View File

@ -0,0 +1,36 @@
SubDir TOP common attributes ;
TargetDirectory ;
SubDirHdrs $(SUBDIR)/../gamecode ;
SubDirHdrs $(SUBDIR)/../kernel ;
SubDirHdrs $(SUBDIR)/../util ;
SubDirHdrs $(SUBDIR)/.. ;
SubDirHdrs $(SUBDIR)/../.. ;
SOURCES =
aggressive.c
at_movement.c
attributes.c
fleechance.c
follow.c
giveitem.c
gm.c
hate.c
iceberg.c
key.c
matmod.c
moved.c
option.c
orcification.c
otherfaction.c
overrideroads.c
racename.c
raceprefix.c
reduceproduction.c
synonym.c
targetregion.c
ugroup.c
viewrange.c
;
Library attributes : $(SOURCES) ;

View File

@ -0,0 +1,22 @@
SubDir TOP common gamecode ;
TargetDirectory ;
SubDirHdrs $(SUBDIR)/../kernel ;
SubDirHdrs $(SUBDIR)/../util ;
SubDirHdrs $(SUBDIR)/.. ;
SubDirHdrs $(SUBDIR)/../.. ;
SOURCES =
creation.c
creport.c
economy.c
laws.c
luck.c
monster.c
randenc.c
report.c
spy.c
study.c
;
Library gamecode : $(SOURCES) ;

23
src/common/items/Jamfile Normal file
View File

@ -0,0 +1,23 @@
SubDir TOP common items ;
TargetDirectory ;
SubDirHdrs $(SUBDIR)/../gamecode ;
SubDirHdrs $(SUBDIR)/../kernel ;
SubDirHdrs $(SUBDIR)/../util ;
SubDirHdrs $(SUBDIR)/.. ;
SubDirHdrs $(SUBDIR)/../.. ;
SOURCES =
birthday_firework.c
catapultammo.c
demonseye.c
items.c
lmsreward.c
questkeys.c
racespoils.c
seed.c
weapons.c
xerewards.c
;
Library items : $(SOURCES) ;

46
src/common/kernel/Jamfile Normal file
View File

@ -0,0 +1,46 @@
SubDir TOP common kernel ;
TargetDirectory ;
SubDirHdrs $(SUBDIR)/../util ;
SubDirHdrs $(SUBDIR)/.. ;
SubDirHdrs $(SUBDIR)/../.. ;
SOURCES =
alchemy.c
battle.c
border.c
build.c
building.c
combatspells.c
curse.c
eressea.c
faction.c
group.c
item.c
karma.c
magic.c
message.c
movement.c
names.c
objtypes.c
orders.c
pathfinder.c
plane.c
player.c
pool.c
race.c
region.c
render.c
reports.c
resources.c
save.c
ship.c
skill.c
spell.c
teleport.c
terrain.c
ugroup.c
unit.c
;
Library kernel : $(SOURCES) ;

View File

@ -0,0 +1,28 @@
SubDir TOP common modules ;
TargetDirectory ;
SubDirHdrs $(SUBDIR)/../gamecode ;
SubDirHdrs $(SUBDIR)/../kernel ;
SubDirHdrs $(SUBDIR)/../util ;
SubDirHdrs $(SUBDIR)/.. ;
SubDirHdrs $(SUBDIR)/../.. ;
SOURCES =
alliance.c
arena.c
dungeon.c
gmcmd.c
infocmd.c
museum.c
oceannames.c
score.c
victoryconditions.c
weather.c
xecmd.c
xmas2000.c
xmas2001.c
xmas2002.c
xmas.c
;
Library modules : $(SOURCES) ;

16
src/common/races/Jamfile Normal file
View File

@ -0,0 +1,16 @@
SubDir TOP common races ;
TargetDirectory ;
SubDirHdrs $(SUBDIR)/../gamecode ;
SubDirHdrs $(SUBDIR)/../kernel ;
SubDirHdrs $(SUBDIR)/../util ;
SubDirHdrs $(SUBDIR)/.. ;
SubDirHdrs $(SUBDIR)/../.. ;
SOURCES =
dragons.c
illusion.c
zombies.c
;
Library races : $(SOURCES) ;

19
src/common/spells/Jamfile Normal file
View File

@ -0,0 +1,19 @@
SubDir TOP common spells ;
TargetDirectory ;
SubDirHdrs $(SUBDIR)/../gamecode ;
SubDirHdrs $(SUBDIR)/../kernel ;
SubDirHdrs $(SUBDIR)/../util ;
SubDirHdrs $(SUBDIR)/.. ;
SubDirHdrs $(SUBDIR)/../.. ;
SOURCES =
alp.c
buildingcurse.c
regioncurse.c
shipcurse.c
spells.c
unitcurse.c
;
Library spells : $(SOURCES) ;

View File

@ -0,0 +1,27 @@
SubDir TOP common triggers ;
TargetDirectory ;
SubDirHdrs $(SUBDIR)/../gamecode ;
SubDirHdrs $(SUBDIR)/../kernel ;
SubDirHdrs $(SUBDIR)/../util ;
SubDirHdrs $(SUBDIR)/.. ;
SubDirHdrs $(SUBDIR)/../.. ;
SOURCES =
changefaction.c
changerace.c
clonedied.c
createcurse.c
createunit.c
gate.c
giveitem.c
killunit.c
removecurse.c
shock.c
timeout.c
triggers.c
unguard.c
unitmessage.c
;
Library triggers : $(SOURCES) ;

35
src/common/util/Jamfile Normal file
View File

@ -0,0 +1,35 @@
SubDir TOP common util ;
TargetDirectory ;
SubDirHdrs $(SUBDIR)/.. ;
SubDirHdrs $(SUBDIR)/../.. ;
SOURCES =
attrib.c
base36.c
command.c
crmessage.c
cvector.c
dice.c
event.c
functions.c
goodies.c
graph.c
language.c
lists.c
log.c
message.c
nrmessage.c
rand.c
resolve.c
sql.c
strncpy.c
translation.c
umlaut.c
vmap.c
vset.c
windir.c
xml.c
;
Library util : $(SOURCES) ;

17
src/eressea/Jamfile Normal file
View File

@ -0,0 +1,17 @@
SubDir TOP eressea ;
TargetDirectory ;
SubDirHdrs $(SUBDIR)/../common/gamecode ;
SubDirHdrs $(SUBDIR)/../common/kernel ;
SubDirHdrs $(SUBDIR)/../common/util ;
SubDirHdrs $(SUBDIR)/../common ;
SubDirHdrs $(SUBDIR)/.. ;
SOURCES =
korrektur.c
main.c
;
Main eressea : $(SOURCES) ;
LinkLibraries eressea : kernel gamecode modules util items attributes spells races triggers ;
LINKLIBS on eressea += -lm ;

23
src/mapper/Jamfile Normal file
View File

@ -0,0 +1,23 @@
SubDir TOP mapper ;
TargetDirectory ;
SubDirHdrs $(SUBDIR)/../common/gamecode ;
SubDirHdrs $(SUBDIR)/../common/kernel ;
SubDirHdrs $(SUBDIR)/../common/util ;
SubDirHdrs $(SUBDIR)/../common ;
SubDirHdrs $(SUBDIR)/.. ;
SOURCES =
autoseed.c
logging.c
map_modify.c
map_partei.c
mapper.c
map_region.c
map_tools.c
map_units.c
;
Main mapper : $(SOURCES) ;
LinkLibraries mapper : kernel gamecode triggers spells items races attributes modules util ;
LINKLIBS on mapper += -lm -lncurses ;