Added "scons install" target

This commit is contained in:
punkrockguy318 2008-08-02 22:53:49 +00:00
parent ca019d734f
commit 2784fc9bb4
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,4 @@
To compile and install FCE Ultra, follow these steps: To compile and install FCE Ultra, follow these steps:
1. Ensure that SCons, SDL, and liblua5.1 are installed on your system. 1. Ensure that SCons, SDL, and liblua5.1 are installed on your system.
2. Run "scons" 2. Run "scons" to build fceux.
3. To install on Linux/BSD run "scons install" as root.

View File

@ -11,9 +11,13 @@ opts.AddOptions(
) )
env = Environment(options = opts) env = Environment(options = opts)
env.Alias(target="install", source=env.Install(dir="/usr/local/bin/", source="bin/fceux"))
# Default compiler flags: # Default compiler flags:
env.Append(CCFLAGS = ['-Wall', '-Wno-write-strings', '-Wno-sign-compare']) env.Append(CCFLAGS = ['-Wall', '-Wno-write-strings', '-Wno-sign-compare'])
if os.environ.has_key('PLATFORM'): if os.environ.has_key('PLATFORM'):
env.Replace(PLATFORM = os.environ['PLATFORM']) env.Replace(PLATFORM = os.environ['PLATFORM'])
if os.environ.has_key('CC'): if os.environ.has_key('CC'):