diff --git a/src/Jamfile b/src/Jamfile new file mode 100644 index 000000000..5a30c3f46 --- /dev/null +++ b/src/Jamfile @@ -0,0 +1,4 @@ +SubDir TOP ; +SubInclude TOP common ; +SubInclude TOP eressea ; +SubInclude TOP mapper ; diff --git a/src/Jamrules b/src/Jamrules new file mode 100644 index 000000000..eb34cbbf0 --- /dev/null +++ b/src/Jamrules @@ -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 ; +} + diff --git a/src/common/Jamfile b/src/common/Jamfile new file mode 100644 index 000000000..126744821 --- /dev/null +++ b/src/common/Jamfile @@ -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 ; diff --git a/src/common/attributes/Jamfile b/src/common/attributes/Jamfile new file mode 100644 index 000000000..44edac56c --- /dev/null +++ b/src/common/attributes/Jamfile @@ -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) ; diff --git a/src/common/gamecode/Jamfile b/src/common/gamecode/Jamfile new file mode 100644 index 000000000..08f74cf9b --- /dev/null +++ b/src/common/gamecode/Jamfile @@ -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) ; diff --git a/src/common/items/Jamfile b/src/common/items/Jamfile new file mode 100644 index 000000000..5ae94923a --- /dev/null +++ b/src/common/items/Jamfile @@ -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) ; diff --git a/src/common/kernel/Jamfile b/src/common/kernel/Jamfile new file mode 100644 index 000000000..e130b3248 --- /dev/null +++ b/src/common/kernel/Jamfile @@ -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) ; diff --git a/src/common/modules/Jamfile b/src/common/modules/Jamfile new file mode 100644 index 000000000..9137e971c --- /dev/null +++ b/src/common/modules/Jamfile @@ -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) ; diff --git a/src/common/races/Jamfile b/src/common/races/Jamfile new file mode 100644 index 000000000..62d99ddef --- /dev/null +++ b/src/common/races/Jamfile @@ -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) ; diff --git a/src/common/spells/Jamfile b/src/common/spells/Jamfile new file mode 100644 index 000000000..e6a099dd7 --- /dev/null +++ b/src/common/spells/Jamfile @@ -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) ; diff --git a/src/common/triggers/Jamfile b/src/common/triggers/Jamfile new file mode 100644 index 000000000..3ea380a67 --- /dev/null +++ b/src/common/triggers/Jamfile @@ -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) ; diff --git a/src/common/util/Jamfile b/src/common/util/Jamfile new file mode 100644 index 000000000..ec64dbdfa --- /dev/null +++ b/src/common/util/Jamfile @@ -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) ; diff --git a/src/eressea/Jamfile b/src/eressea/Jamfile new file mode 100644 index 000000000..5e9817586 --- /dev/null +++ b/src/eressea/Jamfile @@ -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 ; diff --git a/src/mapper/Jamfile b/src/mapper/Jamfile new file mode 100644 index 000000000..c5a602caa --- /dev/null +++ b/src/mapper/Jamfile @@ -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 ;