Changeset 277 for trunk/SConstruct
- Timestamp:
- 12/03/11 20:02:33 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r273 r277 24 24 # Libraries 25 25 libregfi_static = env.Library(lib_src) 26 libregfi = env.SharedLibrary(lib_src, LIBS=['m','pthread', 'talloc']) 26 libregfi = env.SharedLibrary(lib_src, LIBS=['m','pthread', 'talloc'], 27 LINKFLAGS="-shared -fPIC -Wl,-soname,libregfi.so.%s" % REGFI_VERSION) 27 28 28 29 … … 46 47 47 48 # Installation 48 prefix='/usr/local/' 49 if 'PREFIX' in os.environ: 50 prefix = os.environ['PREFIX']+'/' 49 prefix = os.environ.get('PREFIX','/usr/local')+'/' 50 destdir = os.environ.get('DESTDIR','') 51 bindir = os.environ.get('BINDIR', prefix + 'bin') 52 libdir = os.environ.get('LIBDIR', prefix + 'lib') 53 includedir = os.environ.get('INCLUDEDIR', prefix + 'include') 54 mandir = os.environ.get('MANDIR', prefix + 'man') 51 55 52 install_items = [ prefix+'bin',53 prefix+'lib',54 prefix+'include/regfi',55 prefix+'man']56 install_items = [destdir + bindir, 57 destdir + libdir, 58 destdir + includedir + '/regfi', 59 destdir + mandir] 56 60 57 env.Install(prefix+'bin', [reglookup, reglookup_recover, 'bin/reglookup-timeline']) 58 libinstall = env.Install(prefix+'lib', [libregfi, libregfi_static]) 59 env.Install(prefix+'include/regfi', Glob('include/*.h')) 60 env.Install(prefix+'man/man1', [man_reglookup, man_reglookup_recover, 61 man_reglookup_timeline]) 62 env.AddPostAction(libinstall, 'ldconfig') 61 62 env.Install(destdir+bindir, [reglookup, reglookup_recover, 'bin/reglookup-timeline']) 63 libinstall = env.Install(destdir+libdir, [libregfi, libregfi_static]) 64 env.Install(destdir+includedir+'/regfi', Glob('include/*.h')) 65 env.Install(destdir+mandir+'/man1', [man_reglookup, man_reglookup_recover, 66 man_reglookup_timeline]) 67 if os.getuid() == 0: 68 env.AddPostAction(libinstall, 'ldconfig') 63 69 64 70 if sys.version_info[0] == 2: … … 67 73 'python/pyregfi/structures.py', 68 74 'python/pyregfi/winsec.py'], 69 "python pyregfi-distutils.py install | tee pyregfi2-install.log")75 "python pyregfi-distutils.py install --root=%s | tee pyregfi2-install.log" % destdir) 70 76 71 77 python_path = os.popen('which python3').read() … … 75 81 'python/pyregfi/structures.py', 76 82 'python/pyregfi/winsec.py'], 77 "python3 pyregfi-distutils.py install | tee pyregfi3-install.log")83 "python3 pyregfi-distutils.py install --root=%s | tee pyregfi3-install.log" % destdir) 78 84 79 85 # API documentation
Note: See TracChangeset
for help on using the changeset viewer.