mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-10 17:46:53 -10:00
375 lines
7.9 KiB
Makefile
375 lines
7.9 KiB
Makefile
# code/Makefile.am for fs2_open
|
|
#
|
|
# $Id: Makefile.am,v 1.3 2004-05-24 04:10:03 taylor Exp $
|
|
|
|
if FS2_DEBUG
|
|
noinst_PROGRAMS = fs2_open_d
|
|
fs2_open_d_SOURCES = $(CODE_SOURCES)
|
|
else
|
|
noinst_PROGRAMS = fs2_open_r
|
|
fs2_open_r_SOURCES = $(CODE_SOURCES)
|
|
endif # FS2_DEBUG
|
|
|
|
LDADD =
|
|
|
|
|
|
CODE_SOURCES = \
|
|
anim/animplay.cpp \
|
|
anim/packunpack.cpp \
|
|
asteroid/asteroid.cpp \
|
|
autopilot/autopilot.cpp \
|
|
bmpman/bmpman.cpp \
|
|
cfile/cfile.cpp \
|
|
cfile/cfilearchive.cpp \
|
|
cfile/cfilelist.cpp \
|
|
cfile/cfilesystem.cpp \
|
|
cmdline/cmdline.cpp \
|
|
cmeasure/cmeasure.cpp \
|
|
controlconfig/controlsconfig.cpp \
|
|
controlconfig/controlsconfigcommon.cpp \
|
|
cutscene/cutscenes.cpp \
|
|
ddsutils/ddsutils.cpp \
|
|
debris/debris.cpp \
|
|
debugconsole/console.cpp \
|
|
debugconsole/timerbar.cpp \
|
|
decals/decals.cpp \
|
|
demo/demo.cpp \
|
|
exceptionhandler/exceptionhandler.cpp \
|
|
fireball/fireballs.cpp \
|
|
fireball/warpineffect.cpp \
|
|
freespace2/freespace.cpp \
|
|
freespace2/levelpaging.cpp \
|
|
gamehelp/contexthelp.cpp \
|
|
gamehelp/gameplayhelp.cpp \
|
|
gamesequence/gamesequence.cpp \
|
|
globalincs/alphacolors.cpp \
|
|
globalincs/crypt.cpp \
|
|
globalincs/systemvars.cpp \
|
|
globalincs/version.cpp \
|
|
graphics/2d.cpp \
|
|
graphics/font.cpp \
|
|
graphics/grbatch.cpp \
|
|
graphics/gropengl.cpp \
|
|
graphics/gropenglextension.cpp \
|
|
graphics/gropengllight.cpp \
|
|
graphics/gropengltexture.cpp \
|
|
graphics/gropengltnl.cpp \
|
|
graphics/grzbuffer.cpp \
|
|
hud/hud.cpp \
|
|
hud/hudartillery.cpp \
|
|
hud/hudbrackets.cpp \
|
|
hud/hudconfig.cpp \
|
|
hud/hudescort.cpp \
|
|
hud/hudets.cpp \
|
|
hud/hudlock.cpp \
|
|
hud/hudmessage.cpp \
|
|
hud/hudnavigation.cpp \
|
|
hud/hudreticle.cpp \
|
|
hud/hudshield.cpp \
|
|
hud/hudsquadmsg.cpp \
|
|
hud/hudtarget.cpp \
|
|
hud/hudtargetbox.cpp \
|
|
hud/hudwingmanstatus.cpp \
|
|
io/key.cpp \
|
|
io/keycontrol.cpp \
|
|
io/mouse.cpp \
|
|
io/timer.cpp \
|
|
jpgutils/jpgutils.cpp \
|
|
jumpnode/jumpnode.cpp \
|
|
lighting/lighting.cpp \
|
|
localization/fhash.cpp \
|
|
localization/localize.cpp \
|
|
math/fix.cpp \
|
|
math/floating.cpp \
|
|
math/fvi.cpp \
|
|
math/spline.cpp \
|
|
math/staticrand.cpp \
|
|
math/vecmat.cpp \
|
|
menuui/barracks.cpp \
|
|
menuui/credits.cpp \
|
|
menuui/fishtank.cpp \
|
|
menuui/mainhallmenu.cpp \
|
|
menuui/mainhalltemp.cpp \
|
|
menuui/optionsmenu.cpp \
|
|
menuui/playermenu.cpp \
|
|
menuui/readyroom.cpp \
|
|
menuui/snazzyui.cpp \
|
|
menuui/techmenu.cpp \
|
|
menuui/trainingmenu.cpp \
|
|
mission/missionbriefcommon.cpp \
|
|
mission/missioncampaign.cpp \
|
|
mission/missiongoals.cpp \
|
|
mission/missiongrid.cpp \
|
|
mission/missionhotkey.cpp \
|
|
mission/missionload.cpp \
|
|
mission/missionlog.cpp \
|
|
mission/missionmessage.cpp \
|
|
mission/missionparse.cpp \
|
|
mission/missiontraining.cpp \
|
|
missionui/missionbrief.cpp \
|
|
missionui/missioncmdbrief.cpp \
|
|
missionui/missiondebrief.cpp \
|
|
missionui/missionloopbrief.cpp \
|
|
missionui/missionpause.cpp \
|
|
missionui/missionrecommend.cpp \
|
|
missionui/missionscreencommon.cpp \
|
|
missionui/missionshipchoice.cpp \
|
|
missionui/missionstats.cpp \
|
|
missionui/missionweaponchoice.cpp \
|
|
missionui/redalert.cpp \
|
|
model/modelcollide.cpp \
|
|
model/modelinterp.cpp \
|
|
model/modeloctant.cpp \
|
|
model/modelread.cpp \
|
|
nebula/neb.cpp \
|
|
nebula/neblightning.cpp \
|
|
object/collidedebrisship.cpp \
|
|
object/collidedebrisweapon.cpp \
|
|
object/collideshipship.cpp \
|
|
object/collideshipweapon.cpp \
|
|
object/collideweaponweapon.cpp \
|
|
object/objcollide.cpp \
|
|
object/object.cpp \
|
|
object/objectsort.cpp \
|
|
observer/observer.cpp \
|
|
palman/palman.cpp \
|
|
parse/encrypt.cpp \
|
|
parse/parselo.cpp \
|
|
parse/sexp.cpp \
|
|
particle/particle.cpp \
|
|
pcxutils/pcxutils.cpp \
|
|
physics/physics.cpp \
|
|
playerman/managepilot.cpp \
|
|
playerman/playercontrol.cpp \
|
|
popup/popup.cpp \
|
|
popup/popupdead.cpp \
|
|
radar/radar.cpp \
|
|
render/3dclipper.cpp \
|
|
render/3ddraw.cpp \
|
|
render/3dlaser.cpp \
|
|
render/3dmath.cpp \
|
|
render/3dsetup.cpp \
|
|
ship/afterburner.cpp \
|
|
ship/ai.cpp \
|
|
ship/aibig.cpp \
|
|
ship/aicode.cpp \
|
|
ship/aigoals.cpp \
|
|
ship/awacs.cpp \
|
|
ship/shield.cpp \
|
|
ship/ship.cpp \
|
|
ship/shipcontrails.cpp \
|
|
ship/shipfx.cpp \
|
|
ship/shiphit.cpp \
|
|
starfield/nebula.cpp \
|
|
starfield/starfield.cpp \
|
|
starfield/supernova.cpp \
|
|
stats/medals.cpp \
|
|
stats/scoring.cpp \
|
|
stats/stats.cpp \
|
|
tgautils/tgautils.cpp \
|
|
ui/button.cpp \
|
|
ui/checkbox.cpp \
|
|
ui/gadget.cpp \
|
|
ui/icon.cpp \
|
|
ui/inputbox.cpp \
|
|
ui/keytrap.cpp \
|
|
ui/listbox.cpp \
|
|
ui/radio.cpp \
|
|
ui/scroll.cpp \
|
|
ui/slider.cpp \
|
|
ui/slider2.cpp \
|
|
ui/uidraw.cpp \
|
|
ui/uimouse.cpp \
|
|
ui/window.cpp \
|
|
weapon/beam.cpp \
|
|
weapon/corkscrew.cpp \
|
|
weapon/emp.cpp \
|
|
weapon/flak.cpp \
|
|
weapon/muzzleflash.cpp \
|
|
weapon/shockwave.cpp \
|
|
weapon/swarm.cpp \
|
|
weapon/trails.cpp \
|
|
weapon/weapons.cpp \
|
|
species_defs/species_defs.cpp
|
|
|
|
|
|
## conditional includes follow:
|
|
|
|
## joystic support sources
|
|
if FS2_JOYSTICK
|
|
|
|
if FS2_OS_WIN32
|
|
CODE_SOURCES += \
|
|
io/joy.cpp \
|
|
io/joy_ff.cpp \
|
|
io/swff_lib.cpp
|
|
endif # FS2_OS_WIN32
|
|
|
|
if FS2_OS_UNIX
|
|
CODE_SOURCES += \
|
|
io/joy-unix.cpp
|
|
endif # FS2_OS_UNIX
|
|
|
|
endif # FS2_JOYSTICK
|
|
|
|
## networking support sources
|
|
if FS2_NETWORKING
|
|
CODE_SOURCES += \
|
|
hud/hudobserver.cpp \
|
|
irc/irc.cpp \
|
|
network/fs2ox.cpp \
|
|
network/multi.cpp \
|
|
network/multimsgs.cpp \
|
|
network/multiteamselect.cpp \
|
|
network/multiui.cpp \
|
|
network/multiutil.cpp \
|
|
network/multi_campaign.cpp \
|
|
network/multi_data.cpp \
|
|
network/multi_dogfight.cpp \
|
|
network/multi_endgame.cpp \
|
|
network/multi_ingame.cpp \
|
|
network/multi_kick.cpp \
|
|
network/multi_log.cpp \
|
|
network/multi_obj.cpp \
|
|
network/multi_observer.cpp \
|
|
network/multi_options.cpp \
|
|
network/multi_pause.cpp \
|
|
network/multi_pinfo.cpp \
|
|
network/multi_ping.cpp \
|
|
network/multi_pmsg.cpp \
|
|
network/multi_rate.cpp \
|
|
network/multi_respawn.cpp \
|
|
network/multi_team.cpp \
|
|
network/multi_voice.cpp \
|
|
network/multi_xfer.cpp \
|
|
network/psnet.cpp \
|
|
network/psnet2.cpp \
|
|
menuui/optionsmenumulti.cpp \
|
|
missionui/chatbox.cpp \
|
|
fs2open_pxo/Client.cpp \
|
|
fs2open_pxo/TCP_Client.cpp \
|
|
fs2open_pxo/TCP_Socket.cpp \
|
|
fs2open_pxo/udpsocket.cpp
|
|
|
|
if FS2_OS_WIN32
|
|
CODE_SOURCES += \
|
|
network/stand_gui.cpp
|
|
endif # FS2_OS_WIN32
|
|
|
|
if FS2_OS_UNIX
|
|
CODE_SOURCES += \
|
|
network/stand_gui-unix.cpp
|
|
endif # FS2_OS_UNIX
|
|
|
|
endif # FS2_NETWORKING
|
|
|
|
## sound support sources
|
|
if FS2_SOUND
|
|
CODE_SOURCES += \
|
|
gamesnd/eventmusic.cpp \
|
|
gamesnd/gamesnd.cpp \
|
|
object/objectsnd.cpp \
|
|
sound/ds.cpp \
|
|
sound/midifile.cpp \
|
|
sound/rbaudio.cpp \
|
|
sound/rtvoice.cpp \
|
|
sound/sound.cpp \
|
|
sound/winmidi.cpp \
|
|
sound/winmidi_base.cpp \
|
|
vcodec/codec1.cpp \
|
|
sound/fsspeech.cpp \
|
|
sound/speech.cpp
|
|
|
|
if FS2_OS_WIN32
|
|
CODE_SOURCES += \
|
|
sound/dscap.cpp \
|
|
sound/ds3d.cpp \
|
|
sound/audiostr.cpp \
|
|
sound/acm.cpp
|
|
endif # FS2_OS_WIN32
|
|
|
|
if FS2_OS_UNIX
|
|
CODE_SOURCES += \
|
|
sound/audiostr-unix.cpp \
|
|
sound/acm-unix.cpp
|
|
endif # FS2_OS_UNIX
|
|
|
|
endif # FS2_SOUND
|
|
|
|
## Win32-specific sources
|
|
if FS2_OS_WIN32
|
|
CODE_SOURCES += \
|
|
cutscene/movie.cpp \
|
|
directx/dx8show.cpp \
|
|
globalincs/windebug.cpp \
|
|
glide/glide.cpp \
|
|
graphics/grd3d.cpp \
|
|
graphics/grd3dbatch.cpp \
|
|
graphics/grd3drender.cpp \
|
|
graphics/grd3dtexture.cpp \
|
|
graphics/grdirectdraw.cpp \
|
|
graphics/grglide.cpp \
|
|
graphics/grglidetexture.cpp \
|
|
osapi/osapi.cpp \
|
|
osapi/osregistry.cpp \
|
|
osapi/outwnd.cpp
|
|
endif # FS2_OS_WIN32
|
|
|
|
## Unix-specific sources
|
|
if FS2_OS_UNIX
|
|
CODE_SOURCES += \
|
|
io/xmouse.cpp \
|
|
osapi/osapi_unix.cpp \
|
|
osapi/osregistry_unix.cpp \
|
|
osapi/outwnd_unix.cpp \
|
|
cutscene/movie.cpp \
|
|
windows_stub/stubs.cpp
|
|
endif # FS2_OS_UNIX
|
|
|
|
# Use devIL
|
|
if FS2_DEVIL
|
|
CODE_SOURCES += \
|
|
openil/il_func.cpp
|
|
endif # FS2_DEVIL
|
|
|
|
#if FS2_SPEECH
|
|
#LDADD += \
|
|
# -lFestival -lestools -lestbase -leststring -lncurses
|
|
#endif
|
|
|
|
|
|
if FS2_OS_WIN32
|
|
## compiler flags
|
|
# INCLUDES = -I.
|
|
AM_CXXFLAGS = \
|
|
-fexceptions \
|
|
${DX8_INCLUDE} \
|
|
${DEVIL_CFLAGS}
|
|
|
|
AM_LDFLAGS = \
|
|
${DX8_LIB} \
|
|
${DEVIL_LIBS}
|
|
|
|
## Win32 libraries needed
|
|
LDADD += \
|
|
-lgdi32 -lole32 -lwsock32 -lwinmm -lmsacm32 -lopengl32 \
|
|
-lcomctl32 -lstrmiids -ldxguid -lddraw -ldinput
|
|
endif
|
|
|
|
|
|
if FS2_OS_UNIX
|
|
## Unix compiler flags
|
|
AM_CXXFLAGS = \
|
|
-Wno-missing-braces -Wno-multichar -Wno-deprecated \
|
|
${SDL_CFLAGS} \
|
|
${OPENAL_CFLAGS} \
|
|
${DEVIL_CFLAGS} \
|
|
-fsigned-char -DNO_DIRECT3D -DUSE_OPENGL
|
|
|
|
AM_LDFLAGS = \
|
|
${OGL_LIBDIR} -lGL -lGLU \
|
|
${SDL_LIBS} \
|
|
${OPENAL_LIBS} \
|
|
${DEVIL_LIBS}
|
|
endif
|