1
# include $(top_srcdir)/Makefile.paths
2
SUBDIRS = first doc thirdparty
7
# include autogenerated makefile that generates
8
# the universal variable replacement sed script
9
../universal_variable_values_makefile:
10
cd ..; ./config.status universal_variables
11
@silent_inc@ ${top_builddir}/universal_variable_values_makefile
13
tUniversalVariables.h: Makefile tUniversalVariables.h.in ${top_builddir}/universal_variable_values_sed
14
sed -f ${top_builddir}/universal_variable_values_sed < tUniversalVariables.h.in > $@
16
${srcdir}/tools/tDirectories.cpp: tUniversalVariables.h
18
EXTRA_DIST = render/rConsoleCout.cpp
21
cp -R ${srcdir}/config_ide.h ${srcdir}/macosx ${srcdir}/win32 ${srcdir}/win32_ded $(distdir)
23
# adapt versions in Mac and Windows header files
24
for f in macosx/config_common.h config_ide.h; do\
25
chmod 644 ${distdir}/$$f;\
26
sed -e "s,#define VERSION.*$$,#define VERSION \"${VERSION}\"," < ${srcdir}/$$f > ${distdir}/$$f;\
29
# library file listings
31
# Note: tMemManager.cpp must be last to avoid false leak reports (sorry for
32
# the fragile dependency on undefined behaviour of the linker...)
33
libtools_a_SOURCES= tools/tArray.cpp tools/tArray.h tools/tCallback.cpp tools/tCallback.h tools/tCallbackString.h tools/tColor.h\
34
tools/tConfiguration.cpp tools/tConfiguration.h tools/tConsole.cpp tools/tConsole.h tools/tCrypt.cpp tools/tCrypt.h\
35
tools/tDirectories.cpp tools/tDirectories.h tools/tError.cpp tools/tError.h tools/tEventQueue.cpp\
36
tools/tEventQueue.h tools/tHeap.cpp tools/tHeap.h tools/tInitExit.h tools/tLinkedList.cpp tools/tLinkedList.h\
37
tools/tList.h tools/tLocale.cpp tools/tLocale.h tools/tMath.h \
38
tools/tMemStack.cpp tools/tMemStack.h tools/tReferenceHolder.h tools/tResourceManager.cpp\
39
tools/tResourceManager.h tools/tRing.cpp tools/tRing.h tools/tSafePTR.cpp\
40
tools/tSafePTR.h tools/tString.cpp tools/tString.h tools/tSysTime.cpp tools/tSysTime.h tools/tToDo.cpp tools/tToDo.h\
41
tools/tException.cpp tools/tException.h\
42
tools/tRecorder.cpp tools/tRecorder.h\
43
tools/tRecorderInternal.cpp tools/tRecorderInternal.h\
44
tools/tCommandLine.cpp tools/tCommandLine.h\
45
tools/tRandom.cpp tools/tRandom.h\
47
thirdparty/binreloc/prefix.c thirdparty/binreloc/prefix.h\
48
tools/tMemManager.cpp tools/tMemManager.h
50
#tools/tCommandLine.cpp tools/tCommandLine.h
51
libnetwork_a_SOURCES=network/md5.cpp network/md5.h network/nAuthentification.cpp\
52
network/nAuthentification.h network/nConfig.cpp network/nConfig.h\
53
network/nKrawall.cpp network/nKrawall.h network/nKrawallPrivate.cpp\
54
network/nNetObject.cpp network/nNetObject.h network/nNetwork.cpp network/nNetwork.h\
55
network/nObserver.cpp network/nObserver.h network/nPriorizing.cpp network/nPriorizing.h\
56
network/nServerInfo.cpp network/nServerInfo.h network/nSimulatePing.h network/nSocket.cpp\
57
network/nSocket.h network/nSpamProtection.cpp network/nSpamProtection.h
60
libengine_a_SOURCES=engine/eAdvWall.cpp engine/eAdvWall.h engine/eAuthentification.cpp\
61
engine/eAuthentification.h engine/eAxis.cpp engine/eAxis.h engine/eCamera.cpp engine/eCamera.h\
62
engine/eCoord.h engine/eDebugLine.cpp engine/eDebugLine.h engine/eDisplay.cpp engine/eFloor.cpp\
63
engine/eFloor.h engine/eGameObject.cpp engine/eGameObject.h engine/eGrid.cpp engine/eGrid.h\
64
engine/eKrawall.cpp engine/eKrawall.h engine/eNetGameObject.cpp engine/eNetGameObject.h\
65
engine/ePath.cpp engine/ePath.h engine/ePlayer.cpp engine/ePlayer.h engine/eSensor.cpp\
66
engine/eSensor.h engine/eSound.cpp engine/eSound.h engine/eTeam.cpp engine/eTeam.h engine/eTess2.h\
67
engine/eTimer.cpp engine/eTimer.h engine/eVoter.cpp engine/eVoter.h engine/eWall.cpp engine/eWall.h\
68
engine/eRectangle.cpp engine/eRectangle.h
71
librender_a_SOURCES=render/rConsole.cpp render/rConsoleGraph.cpp render/rConsole.h render/rFont.cpp\
72
render/rFont.h render/rGL.h render/rGLRender.cpp render/rModel.cpp render/rModel.h render/rRender.cpp\
73
render/rRender.h render/rScreen.cpp render/rScreen.h render/rSDL.h render/rSysdep.cpp render/rSysdep.h\
74
render/rTexture.cpp render/rTexture.h render/rViewport.cpp render/rViewport.h
77
libtron_a_SOURCES=tron/gAIBase.cpp tron/gAIBase.h tron/gAICharacter.cpp tron/gAICharacter.h tron/gArena.cpp tron/gArena.h\
78
tron/gArmagetron.cpp tron/gCamera.cpp tron/gCamera.h tron/gCycle.cpp tron/gCycle.h tron/gCycleMovement.cpp\
79
tron/gCycleMovement.h tron/gExplosion.cpp tron/gExplosion.h tron/gGame.cpp tron/gGame.h\
80
tron/gHud.cpp tron/gHud.h tron/gLanguageMenu.cpp tron/gLanguageMenu.h tron/gLogo.cpp tron/gLogo.h\
81
tron/gMenus.cpp tron/gMenus.h tron/gParser.cpp tron/gParser.h tron/gParticles.cpp tron/gParticles.h\
82
tron/gSensor.cpp tron/gSensor.h tron/gServerBrowser.cpp tron/gServerBrowser.h tron/gSparks.cpp tron/gSparks.h\
83
tron/gSpawn.cpp tron/gSpawn.h tron/gStuff.cpp tron/gStuff.h tron/gTeam.cpp tron/gTeam.h tron/gWall.cpp\
84
tron/gWall.h tron/gWinZone.cpp tron/gWinZone.h\
85
tron/gServerFavorites.h tron/gServerFavorites.cpp
87
libui_a_SOURCES=ui/uInput.cpp ui/uInput.h ui/uInputQueue.cpp ui/uInputQueue.h ui/uMenu.cpp ui/uMenu.h
90
# library include dependency structure. Watch out, don't create circular include dependencies.
91
# libraries further down the list only may include files from further up in the list.
93
#AM_CXXFLAGS= $(BINRELOC_CFLAGS)
95
libtools_a_CXXFLAGS =$(AM_CXXFLAGS) -I@srcdir@/tools
96
libnetwork_a_CXXFLAGS=$(libtools_a_CXXFLAGS) -I@srcdir@/network
97
librender_a_CXXFLAGS =$(libtools_a_CXXFLAGS) -I@srcdir@/render
98
libui_a_CXXFLAGS =$(librender_a_CXXFLAGS) -I@srcdir@/ui
99
libengine_a_CXXFLAGS =$(libui_a_CXXFLAGS) -I@srcdir@/network -I@srcdir@/engine
100
libtron_a_CXXFLAGS =$(libengine_a_CXXFLAGS) -I@srcdir@/thirdparty/particles -I@srcdir@/tron
103
buildthemaster = armagetronad_main_master$(EXEEXT)
109
buildmain = armagetronad_main$(EXEEXT)
114
games_PROGRAMS = $(buildmain) $(buildthemaster)
115
#EXTRA_PROGRAMS = armagetronad_main_master
119
BUILDFAKE=echo -e "\#!/bin/sh\necho Running FAKE \"\$$0\" \"\$$@\"\ntest \"\$$1\" = "--doc" || test \"\$$1\" = "--help" || sleep 5" > $@; chmod 755 $@
120
armagetronad_main$(EXEEXT): Makefile
123
armagetronad_main_master$(EXEEXT): Makefile
127
noinst_LIBRARIES = libengine.a librender.a libtron.a libui.a libnetwork.a libtools.a
129
noinst_LIBRARIES = libnetwork.a libtools.a
132
armagetronad_main_SOURCES = tron/gFloor.cpp
133
armagetronad_main_CXXFLAGS =$(libtron_a_CXXFLAGS)
134
armagetronad_main_LDADD=libtron.a libengine.a libnetwork.a libui.a librender.a libtools.a
136
armagetronad_main_master_SOURCES = network/master.cpp
137
armagetronad_main_master_CXXFLAGS =$(libtron_a_CXXFLAGS)
138
armagetronad_main_master_LDADD=libnetwork.a libtools.a
141
## Note: tron/gFloor.cpp is not referenced from the outside, but required anyway. So it can't be put into
142
## a library. Adding it to armagetronad_SOURCES has the additional advantage of telling automake that
143
## armagetronad is a C++ project.
145
## Note 2: Libraries must be listed in reverse dependency order.