Added "scons fceux-net-server" build insutrction and updated the makefile for the netplay server

This commit is contained in:
punkrockguy318 2011-10-23 23:31:19 +00:00
parent fc6c9f6da2
commit fade467e75
3 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,8 @@ To compile and install FCEUX for SDL, follow these steps:
4. To install, run "scons install". You can optionally define a prefix with "scons --prefix=/usr install" 4. To install, run "scons install". You can optionally define a prefix with "scons --prefix=/usr install"
5. To compile the server, run "scons fceux-server" or run "make" in the "fceux-server" directory.
Users of Microsoft Visual Studio can use the solution files within the vc directory. Users of Microsoft Visual Studio can use the solution files within the vc directory.
These solution files will compile FCEUX and some included libraries for full functionality. These solution files will compile FCEUX and some included libraries for full functionality.

View File

@ -139,6 +139,7 @@ else:
Export('env') Export('env')
fceux = SConscript('src/SConscript') fceux = SConscript('src/SConscript')
env.Program(target="fceux-net-server", source=["fceux-server/server.cpp", "fceux-server/md5.cpp", "fceux-server/throttle.cpp"])
# Install rules # Install rules
if prefix == None: if prefix == None:
prefix = "/usr/local" prefix = "/usr/local"
@ -173,3 +174,5 @@ env.Alias('install', env.Command(auxlib_inst_dst, auxlib_src, [Copy(auxlib_inst_
env.Alias('install', env.Command(share_dst, share_src, [Copy(share_dst, share_src)])) env.Alias('install', env.Command(share_dst, share_src, [Copy(share_dst, share_src)]))
env.Alias('install', env.Command(man_dst, man_src, [Copy(man_dst, man_src)])) env.Alias('install', env.Command(man_dst, man_src, [Copy(man_dst, man_src)]))
env.Alias('install', (prefix + "/bin/")) env.Alias('install', (prefix + "/bin/"))

View File

@ -12,7 +12,7 @@ clean:
rm -f ${OUTFILE} ${OBJS} rm -f ${OUTFILE} ${OBJS}
install: install:
install -m 755 -D fceux--server ${PREFIX}/bin/fceux-server install -m 755 -D fceux-net-server ${PREFIX}/bin/fceux-server
install -m 644 -D fceux-server.conf /etc/fceux-server.conf install -m 644 -D fceux-server.conf /etc/fceux-server.conf
server.o: server.cpp server.o: server.cpp