~swag/armagetronad/0.2.9-sty+ct+ap-fork

« back to all changes in this revision

Viewing changes to src/Makefile.am

  • Committer: luke-jr
  • Date: 2006-05-29 01:55:42 UTC
  • Revision ID: svn-v3-list-QlpoOTFBWSZTWZvbKhsAAAdRgAAQABK6798QIABURMgAAaeoNT1TxT1DQbKaeobXKiyAmlWT7Y5MkdJOtXDtB7w7DOGFBHiOBxaUIu7HQyyQSvxdyRThQkJvbKhs:7d95bf1e-0414-0410-9756-b78462a59f44:armagetronad%2Fbranches%2F0.2.8%2Farmagetronad:4612
Unify tags/branches of modules released together

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# include $(top_srcdir)/Makefile.paths
 
2
SUBDIRS = first doc thirdparty
 
3
 
 
4
# target directory
 
5
gamesdir=${bindir}
 
6
 
 
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
 
12
 
 
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 > $@
 
15
 
 
16
${srcdir}/tools/tDirectories.cpp: tUniversalVariables.h
 
17
 
 
18
EXTRA_DIST = render/rConsoleCout.cpp
 
19
 
 
20
dist-hook:
 
21
        cp -R ${srcdir}/config_ide.h ${srcdir}/macosx ${srcdir}/win32 ${srcdir}/win32_ded $(distdir)
 
22
 
 
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;\
 
27
        done
 
28
 
 
29
# library file listings
 
30
 
 
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\
 
46
        defs.h\
 
47
    thirdparty/binreloc/prefix.c thirdparty/binreloc/prefix.h\
 
48
        tools/tMemManager.cpp tools/tMemManager.h
 
49
 
 
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
 
58
 
 
59
if BUILDMAIN
 
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
 
69
 
 
70
 
 
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
 
75
 
 
76
 
 
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
 
86
 
 
87
libui_a_SOURCES=ui/uInput.cpp ui/uInput.h ui/uInputQueue.cpp ui/uInputQueue.h ui/uMenu.cpp ui/uMenu.h
 
88
endif
 
89
 
 
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.
 
92
 
 
93
#AM_CXXFLAGS= $(BINRELOC_CFLAGS)
 
94
 
 
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 
 
101
 
 
102
if BUILDMASTER
 
103
buildthemaster = armagetronad_main_master$(EXEEXT)
 
104
else
 
105
buildthemaster =
 
106
endif
 
107
 
 
108
if BUILDMAIN
 
109
buildmain = armagetronad_main$(EXEEXT)
 
110
else
 
111
buildmain =
 
112
endif
 
113
 
 
114
games_PROGRAMS = $(buildmain) $(buildthemaster)
 
115
#EXTRA_PROGRAMS = armagetronad_main_master
 
116
 
 
117
 
 
118
if BUILDFAKERELEASE
 
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
 
121
        ${BUILDFAKE}
 
122
 
 
123
armagetronad_main_master$(EXEEXT): Makefile
 
124
        ${BUILDFAKE}
 
125
else
 
126
if BUILDMAIN
 
127
noinst_LIBRARIES = libengine.a librender.a  libtron.a libui.a libnetwork.a libtools.a
 
128
else
 
129
noinst_LIBRARIES = libnetwork.a libtools.a
 
130
endif
 
131
 
 
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
 
135
 
 
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
 
139
endif
 
140
 
 
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.
 
144
 
 
145
## Note 2: Libraries must be listed in reverse dependency order.