Use some more advanced Automake techniques like noinst_HEADERS. Changes partly autogenerated by KDevelop, so this should be compatible with Automake 1.6.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1118 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2007-02-16 14:36:03 +00:00
parent 1f468f9c46
commit 8a70df4064
10 changed files with 119 additions and 487 deletions

View File

@ -6,47 +6,14 @@
AM_LFLAGS = $(FLEX_FLAGS)
AM_YFLAGS = -d
BUILT_SOURCES = resource_parser.tab.h strres_parser.tab.h
noinst_LIBRARIES = libframework.a
AM_CPPFLAGS = -I$(top_srcdir)
libframework_a_SOURCES = \
SDL_framerate.c \
resource_lexer.lex.c \
resource_parser.tab.c \
strres_lexer.lex.c \
strres_parser.tab.c \
block.c \
configfile.c \
debug.c \
frame.c \
frameresource.c \
heap.c \
input.c \
mem.c \
strres.c \
treap.c \
trig.c \
block.h \
font.h \
heap.h \
memint.h \
treap.h \
fractions.h \
mono.h \
strres.h \
treapint.h \
frame.h \
input.h \
strresly.h \
trig.h \
debug.h \
frameint.h \
listmacs.h \
resly.h \
types.h \
frameresource.h \
configfile.h \
mem.h
BUILT_SOURCES = resource_parser.tab.h strres_parser.tab.h
# ugly hack to circumvent ugly hack
EXTRA_DIST= cursors.h cursors16.h
noinst_LIBRARIES = libframework.a
noinst_HEADERS = block.h configfile.h cursors.h cursors16.h debug.h font.h fractions.h frame.h \
frameint.h frameresource.h heap.h input.h listmacs.h mem.h memint.h mono.h resly.h \
strres.h strresly.h treap.h treapint.h trig.h types.h
libframework_a_SOURCES = SDL_framerate.c block.c configfile.c debug.c frame.c \
frameresource.c heap.c input.c mem.c mono.c resource_lexer.lex.c resource_parser.tab.c \
strres.c strres_lexer.lex.c strres_parser.tab.c treap.c trig.c

View File

@ -6,32 +6,15 @@
AM_LFLAGS = $(FLEX_FLAGS)
AM_YFLAGS = -d
noinst_LIBRARIES = libgamelib.a
AM_CPPFLAGS = -I$(top_srcdir)
BUILT_SOURCES = audp_parser.tab.h
libgamelib_a_SOURCES = \
anim.c \
animobj.c \
audp_lexer.lex.c \
audp_parser.tab.c \
gtime.c \
hashtabl.c \
pqueue.c \
ptrlist.c \
ani.h \
animobj.h \
hashtabl.h \
parser.h \
pqueue.h \
ptrlist.h \
anim.h \
gtime.h \
maxpidef.h \
parser_y.h \
priority.h
libgamelib_a_libs = ../framework/libframework.a \
../$(RENDERER)/lib$(RENDERER).a \
../ivis_common/libivis_common.a
libgamelib_a_DEPENDENCIES = $(libgamelib_a_libs)
libgamelib_a_LIBADD = $(libgamelib_a_libs)
noinst_LIBRARIES = libgamelib.a
noinst_HEADERS = ani.h anim.h animobj.h gtime.h hashtabl.h maxpidef.h parser.h \
pqueue.h priority.h ptrlist.h
libgamelib_a_SOURCES = anim.c animobj.c audp_lexer.lex.c audp_parser.tab.c \
gtime.c hashtabl.c pqueue.c ptrlist.c
libgamelib_a_LIBADD = $(top_builddir)/lib/ivis_opengl/libivis_opengl.a \
$(top_builddir)/lib/ivis_common/libivis_common.a $(top_builddir)/lib/framework/libframework.a

View File

@ -1,35 +1,11 @@
noinst_LIBRARIES = libivis_common.a
AM_CPPFLAGS = -I$(top_srcdir)
libivis_common_a_SOURCES = \
bitimage.c \
bug.c \
imd.c \
imdload.c \
pcx.c \
bitimage.h \
bspfunc.h \
bspimd.h \
bug.h \
geo.h \
imd.h \
ivi.h \
ivisdef.h \
ivispatch.h \
pieblitfunc.h \
pieclip.h \
pieclip.c \
piedef.h \
piefunc.h \
piemode.h \
piepalette.h \
piestate.h \
piestate.c \
pietypes.h \
rendfunc.h \
rendmode.h \
tex.h \
textdraw.h
libivis_common_a_libs = ../framework/libframework.a
libivis_common_a_DEPENDENCIES = $(libivis_common_a_libs)
libivis_common_a_LIBADD = $(libivis_common_a_libs)
noinst_LIBRARIES = libivis_common.a
noinst_HEADERS = bitimage.h bspfunc.h bspimd.h bug.h imd.h ivi.h ivisdef.h \
ivispatch.h pieblitfunc.h pieclip.h piedef.h piefunc.h piemode.h piepalette.h \
piestate.h pietypes.h rendfunc.h rendmode.h tex.h textdraw.h
libivis_common_a_SOURCES = bitimage.c bug.c imd.c imdload.c pcx.c pieclip.c \
piestate.c
libivis_common_a_LIBADD = $(top_builddir)/lib/framework/libframework.a

View File

@ -1,26 +1,11 @@
noinst_LIBRARIES = libivis_opengl.a
AM_CPPFLAGS = -I$(top_srcdir)
libivis_opengl_a_SOURCES = \
bspimd.c \
ivi.c \
pieblitfunc.c \
piedraw.c \
piefunc.c \
piematrix.c \
piemode.c \
piepalette.c \
piestate.c \
pietexture.c \
rendfunc.c \
rendmode.c \
screen.c \
tex.c \
textdraw.c \
ivis02.h \
piematrix.h \
pietexture.h \
screen.h
libivis_opengl_a_libs = ../framework/libframework.a ../ivis_common/libivis_common.a
libivis_opengl_a_DEPENDENCIES = $(libivis_opengl_a_libs)
libivis_opengl_a_LIBADD = $(libivis_opengl_a_libs)
noinst_LIBRARIES = libivis_opengl.a
noinst_HEADERS = ivis02.h piematrix.h pietexture.h screen.h
libivis_opengl_a_SOURCES = bspimd.c ivi.c pieblitfunc.c piedraw.c piefunc.c \
piematrix.c piemode.c piepalette.c piestate.c pietexture.c rendfunc.c rendmode.c \
screen.c tex.c textdraw.c
libivis_opengl_a_LIBADD = $(top_builddir)/lib/ivis_common/libivis_common.a \
$(top_builddir)/lib/framework/libframework.a

View File

@ -1,15 +1,9 @@
noinst_LIBRARIES = libnetplay.a
AM_CPPFLAGS = -I$(top_srcdir)
libnetplay_a_SOURCES = \
netaudio_stub.c \
netcrypt.c \
netjoin_stub.c \
netplay.c \
netlog.c \
netusers_stub.c \
netplay.h \
netlog.h
libnetplay_a_libs = ../framework/libframework.a
libnetplay_a_DEPENDENCIES = $(libnetplay_a_libs)
libnetplay_a_LIBADD = $(libnetplay_a_libs)
noinst_LIBRARIES = libnetplay.a
noinst_HEADERS = netlog.h netplay.h
libnetplay_a_SOURCES = netaudio_stub.c netcrypt.c netjoin_stub.c netplay.c \
netlog.c netusers_stub.c
libnetplay_a_LIBADD = $(top_builddir)/lib/framework/libframework.a

View File

@ -6,29 +6,14 @@
AM_LFLAGS = $(FLEX_FLAGS)
AM_YFLAGS = -d
noinst_LIBRARIES = libscript.a
AM_CPPFLAGS = -I$(top_srcdir)
BUILT_SOURCES = script_parser.tab.h chat_parser.tab.h
libscript_a_SOURCES = \
script_lexer.lex.c \
script_parser.tab.c \
chat_lexer.lex.c \
chat_parser.tab.c \
codeprint.c \
event.c \
evntsave.c \
interp.c \
script.c \
stack.c \
codeprint.h \
event.h \
evntsave.h \
interp.h \
parse.h \
script.h \
chat_processing.h \
stack.h
libscript_a_libs = ../framework/libframework.a
libscript_a_DEPENDENCIES = $(libscript_a_libs)
libscript_a_LIBADD = $(libscript_a_libs)
noinst_LIBRARIES = libscript.a
noinst_HEADERS = chat_processing.h codeprint.h event.h evntsave.h interp.h \
parse.h script.h stack.h
libscript_a_SOURCES = script_lexer.lex.c script_parser.tab.c chat_lexer.lex.c \
chat_parser.tab.c codeprint.c event.c evntsave.c interp.c script.c stack.c
libscript_a_LIBADD = $(top_builddir)/lib/framework/libframework.a

View File

@ -1,16 +1,9 @@
noinst_LIBRARIES = libsequence.a
AM_CPPFLAGS = -I$(top_srcdir)
libsequence_a_SOURCES = \
adpcm.c \
dec130.c \
rpl_reader.c \
sequence_stub.c \
adpcm.h \
rpl_reader.h \
sequence.h \
streamer.h
libsequence_a_libs = ../framework/libframework.a
libsequence_a_DEPENDENCIES = $(libsequence_a_libs)
libsequence_a_LIBADD = $(libsequence_a_libs)
noinst_LIBRARIES = libsequence.a
noinst_HEADERS = adpcm.h rpl_reader.h sequence.h streamer.h
libsequence_a_SOURCES = adpcm.c dec130.c rpl_reader.c sequence_stub.c
libsequence_a_LIBADD = $(top_builddir)/lib/framework/libframework.a

View File

@ -1,19 +1,9 @@
noinst_LIBRARIES = libsound.a
AM_CPPFLAGS = -I$(top_srcdir)
libsound_a_SOURCES = \
audio.c \
cdaudio.c \
openal_track.c \
playlist.c \
track.c \
aud.h \
audio.h \
cdaudio.h \
mixer.h \
track.h \
tracklib.h
libsound_a_libs = ../gamelib/libgamelib.a \
../framework/libframework.a
libsound_a_DEPENDENCIES = $(libsound_a_libs)
libsound_a_LIBADD = $(libsound_a_libs)
noinst_LIBRARIES = libsound.a
noinst_HEADERS = aud.h audio.h cdaudio.h mixer.h track.h tracklib.h
libsound_a_SOURCES = audio.c cdaudio.c openal_track.c playlist.c track.c
libsound_a_LIBADD = $(top_builddir)/lib/gamelib/libgamelib.a \
$(top_builddir)/lib/framework/libframework.a

View File

@ -1,29 +1,11 @@
noinst_LIBRARIES = libwidget.a
AM_CPPFLAGS = -I$(top_srcdir)
libwidget_a_SOURCES = \
bar.c \
button.c \
editbox.c \
form.c \
label.c \
scrap.c \
slider.c \
tip.c \
widget.c \
bar.h \
button.h \
editbox.h \
form.h \
label.h \
scrap.h \
slider.h \
tip.h \
widgbase.h \
widget.h \
widgint.h
libwidget_a_libs = ../framework/libframework.a \
../$(RENDERER)/lib$(RENDERER).a \
../ivis_common/libivis_common.a
libwidget_a_DEPENDENCIES = $(libwidget_a_libs)
libwidget_a_LIBADD = $(libwidget_a_libs)
noinst_LIBRARIES = libwidget.a
noinst_HEADERS = bar.h button.h editbox.h form.h label.h scrap.h slider.h tip.h \
widgbase.h widget.h widgint.h
libwidget_a_SOURCES = bar.c button.c editbox.c form.c label.c scrap.c slider.c \
tip.c widget.c
libwidget_a_LIBADD = $(top_builddir)/lib/ivis_opengl/libivis_opengl.a \
$(top_builddir)/lib/ivis_common/libivis_common.a $(top_builddir)/lib/framework/libframework.a

View File

@ -6,277 +6,54 @@
AM_LFLAGS = $(FLEX_FLAGS)
AM_YFLAGS = -d
BUILT_SOURCES = scriptvals_parser.tab.h
bin_PROGRAMS = warzone2100
AM_CPPFLAGS = -I$(top_srcdir)
warzone2100_SOURCES = \
scriptvals_parser.tab.c \
scriptvals_lexer.lex.c \
level_lexer.lex.c \
ai.c \
aiexperience.c \
astar.c \
action.c \
advvis.c \
atmos.c \
bridge.c \
buildpos.c \
cdspan.c \
cheat.c \
cluster.c \
cmddroid.c \
combat.c \
component.c \
console.c \
data.c \
design.c \
difficulty.c \
disp2d.c \
display.c \
droid.c \
e3demo.c \
edit2d.c \
edit3d.c \
effects.c \
environ.c \
fpath.c \
feature.c \
findpath.c \
formation.c \
frontend.c \
gateway.c \
gatewayroute.c \
gatewaysup.c \
geometry.c \
group.c \
hci.c \
init.c \
intdisplay.c \
intimage.c \
intorder.c \
intelmap.c \
keybind.c \
keymap.c \
levels.c \
lighting.c \
loop.c \
main.c \
map.c \
mapdisplay.c \
mapgrid.c \
mechanics.c \
message.c \
miscimd.c \
move.c \
multiint.c \
multimenu.c \
multiopt.c \
multisync.c \
multibot.c \
multistat.c \
objmem.c \
objects.c \
optimisepath.c \
order.c \
player.c \
powercrypt.c \
radar.c \
raycast.c \
research.c \
scores.c \
scriptai.c \
scriptcb.c \
scriptextern.c \
scriptfuncs.c \
scriptobj.c \
scripttabs.c \
scriptvals.c \
selection.c \
stats.c \
text.c \
texture.c \
transporter.c \
visibility.c \
warcam.c \
wrappers.c \
ani.c \
arrow.c \
aud.c \
audio_id.c \
bucket3d.c \
clparse.c \
configuration.c \
csnap.c \
display3d.c \
drive.c \
function.c \
game.c \
ingameop.c \
keyedit.c \
loadsave.c \
mission.c \
multigifts.c \
multijoin.c \
multilimit.c \
multiplay.c \
multistruct.c \
oprint.c \
power.c \
projectile.c \
seqdisp.c \
structure.c \
target.c \
warzoneconfig.c \
action.h \
advvis.h \
aidef.h \
ai.h \
aiexperience.h \
anim_id.h \
arrow.h \
astar.h \
atmos.h \
audio_id.h \
base.h \
bridge.h \
bucket3d.h \
buildpos.h \
bulletdef.h \
bullet.h \
cdspan.h \
cheat.h \
clparse.h \
cluster.h \
cmddroiddef.h \
cmddroid.h \
combat.h \
component.h \
console.h \
csnap.h \
data.h \
deliverance.h \
design.h \
difficulty.h \
disp2d.h \
display3ddef.h \
display3d.h \
displaydef.h \
display.h \
drive.h \
droiddef.h \
droid.h \
e3demo.h \
edit2d.h \
edit3d.h \
effects.h \
environ.h \
featuredef.h \
feature.h \
findpath.h \
formationdef.h \
formation.h \
fpath.h \
frend.h \
frontend.h \
functiondef.h \
function.h \
gamedefs.h \
game.h \
gatewaydef.h \
gateway.h \
gatewayroute.h \
geometry.h \
group.h \
hci.h \
ingameop.h \
init.h \
intdisplay.h \
intelmap.h \
intfac.h \
intimage.h \
intorder.h \
keybind.h \
keyedit.h \
keymap.h \
levelint.h \
levels.h \
lighting.h \
loadsave.h \
loop.h \
mapdisplay.h \
mapgrid.h \
map.h \
mechanics.h \
messagedef.h \
message.h \
miscimd.h \
missiondef.h \
mission.h \
movedef.h \
move.h \
multigifts.h \
multiint.h \
multijoin.h \
multilimit.h \
multimenu.h \
multiplay.h \
multirecv.h \
multistat.h \
objectdef.h \
objects.h \
objmem.h \
oprint.h \
optimisepath.h \
orderdef.h \
order.h \
player.h \
powercrypt.h \
power.h \
projectile.h \
radar.h \
raycast.h \
researchdef.h \
research.h \
resource.h \
scores.h \
scriptai.h \
scriptcb.h \
scriptextern.h \
scriptfuncs.h \
scriptobj.h \
scripttabs.h \
scriptvals.h \
selection.h \
seqdisp.h \
statsdef.h \
stats.h \
structuredef.h \
structure.h \
target.h \
text.h \
texture.h \
transporter.h \
visibility.h \
warcam.h \
warzoneconfig.h \
weapons.h \
winmain.h \
configuration.h \
wrappers.h
BUILT_SOURCES = scriptvals_parser.tab.h
warzone_libs = ../lib/framework/libframework.a \
../lib/sound/libsound.a \
../lib/netplay/libnetplay.a \
../lib/script/libscript.a \
../lib/ivis_common/libivis_common.a \
../lib/ivis_opengl/libivis_opengl.a \
../lib/gamelib/libgamelib.a \
../lib/sequence/libsequence.a \
../lib/widget/libwidget.a
bin_PROGRAMS = warzone2100
noinst_HEADERS = action.h advvis.h ai.h aidef.h aiexperience.h anim_id.h \
arrow.h astar.h atmos.h audio_id.h base.h bridge.h bucket3d.h buildpos.h \
bullet.h bulletdef.h cdspan.h cheat.h clparse.h cluster.h cmddroid.h \
cmddroiddef.h combat.h component.h configuration.h console.h csnap.h data.h \
deliverance.h design.h difficulty.h disp2d.h display.h display3d.h display3ddef.h \
displaydef.h drive.h droid.h droiddef.h e3demo.h edit2d.h edit3d.h effects.h \
environ.h feature.h featuredef.h findpath.h formation.h formationdef.h fpath.h \
frend.h frontend.h function.h functiondef.h game.h gamedefs.h gateway.h \
gatewaydef.h gatewayroute.h geometry.h group.h hci.h ingameop.h init.h intdisplay.h \
intelmap.h intfac.h intimage.h intorder.h keybind.h keyedit.h keymap.h levelint.h \
levels.h lighting.h loadsave.h loop.h map.h mapdisplay.h mapgrid.h mechanics.h \
message.h messagedef.h miscimd.h mission.h missiondef.h move.h movedef.h \
multigifts.h multiint.h multijoin.h multilimit.h multimenu.h multiplay.h multirecv.h \
multistat.h objectdef.h objects.h objmem.h oprint.h optimisepath.h order.h \
orderdef.h player.h power.h powercrypt.h projectile.h radar.h raycast.h research.h \
researchdef.h resource.h scores.h scriptai.h scriptcb.h scriptextern.h scriptfuncs.h \
scriptobj.h scripttabs.h scriptvals.h selection.h seqdisp.h stats.h statsdef.h \
structure.h structuredef.h target.h text.h texture.h transporter.h visibility.h \
warcam.h warzoneconfig.h weapons.h winmain.h wrappers.h
warzone2100_SOURCES = scriptvals_parser.tab.c scriptvals_lexer.lex.c \
level_lexer.lex.c ai.c aiexperience.c astar.c action.c advvis.c atmos.c bridge.c \
buildpos.c cdspan.c cheat.c cluster.c cmddroid.c combat.c component.c console.c \
data.c design.c difficulty.c disp2d.c display.c droid.c e3demo.c edit2d.c \
edit3d.c effects.c environ.c fpath.c feature.c findpath.c formation.c frontend.c \
gateway.c gatewayroute.c gatewaysup.c geometry.c group.c hci.c init.c \
intdisplay.c intimage.c intorder.c intelmap.c keybind.c keymap.c levels.c lighting.c \
loop.c main.c map.c mapdisplay.c mapgrid.c mechanics.c message.c miscimd.c \
move.c multiint.c multimenu.c multiopt.c multisync.c multibot.c multistat.c \
objmem.c objects.c optimisepath.c order.c player.c powercrypt.c radar.c \
raycast.c research.c scores.c scriptai.c scriptcb.c scriptextern.c scriptfuncs.c \
scriptobj.c scripttabs.c scriptvals.c selection.c stats.c text.c texture.c \
transporter.c visibility.c warcam.c wrappers.c ani.c arrow.c aud.c audio_id.c \
bucket3d.c clparse.c configuration.c csnap.c display3d.c drive.c function.c game.c \
ingameop.c keyedit.c loadsave.c mission.c multigifts.c multijoin.c multilimit.c \
multiplay.c multistruct.c oprint.c power.c projectile.c seqdisp.c structure.c \
target.c warzoneconfig.c
warzone2100_LDADD = $(top_builddir)/lib/widget/libwidget.a \
$(top_builddir)/lib/sound/libsound.a $(top_builddir)/lib/sequence/libsequence.a \
$(top_builddir)/lib/script/libscript.a $(top_builddir)/lib/netplay/libnetplay.a \
$(top_builddir)/lib/ivis_opengl/libivis_opengl.a $(top_builddir)/lib/ivis_common/libivis_common.a \
$(top_builddir)/lib/gamelib/libgamelib.a $(top_builddir)/lib/framework/libframework.a
if MINGW32
warzone_libs += ../win32/warzone2100.o
warzone2100_LDADD += $(top_builddir)/win32/warzone2100.o
endif
warzone2100_DEPENDENCIES = $(warzone_libs)
warzone2100_LDADD = $(warzone_libs)