diff --git a/INSTALL b/INSTALL index 3f7481db..c15cf4c2 100644 --- a/INSTALL +++ b/INSTALL @@ -1,3 +1,4 @@ To compile and install FCE Ultra, follow these steps: 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. diff --git a/SConstruct b/SConstruct index e099a1c3..7a6aadc1 100644 --- a/SConstruct +++ b/SConstruct @@ -11,9 +11,13 @@ opts.AddOptions( ) env = Environment(options = opts) +env.Alias(target="install", source=env.Install(dir="/usr/local/bin/", source="bin/fceux")) + # Default compiler flags: env.Append(CCFLAGS = ['-Wall', '-Wno-write-strings', '-Wno-sign-compare']) + + if os.environ.has_key('PLATFORM'): env.Replace(PLATFORM = os.environ['PLATFORM']) if os.environ.has_key('CC'):