5from configure
import FindROOT
8thisdir_fullpath = Dir(
'.').path
9thisdir = os.path.basename(os.path.normpath(thisdir_fullpath))
12appnames = [
'tstfadc',
'tstfadcblk',
'tstf1tdc',
'tstio',
13 'tstoo',
'tdecpr',
'prfact',
'epicsd',
'tdecex',
19env.Replace(LIBS = [
'dc'])
20env.Replace(LIBPATH = [env.subst(
'$HA_DC')])
21env.Replace(RPATH = [env.subst(
'$HA_DC')])
26if env[
'PLATFORM'] ==
'darwin':
28 for rp
in env[
'RPATH']:
29 env.Append(LINKFLAGS = [
'-Wl,-rpath,'+rp])
35 src = [
'epics_main.cxx']
39 src.append(
'THaGenDetTest.cxx')
41 app = env.Program(target = a, source = src)
46install_prefix = env.subst(
'$INSTALLDIR')
47bin_dir = os.path.join(install_prefix,
'bin')
49rel_lib_dir = os.path.join(env[
'RPATH_ORIGIN_TAG'],
50 os.path.join(
'..',env.subst(
'$LIBSUBDIR')))
51src_dir = os.path.join(install_prefix,os.path.join(
'src',thisdir_fullpath))
53env.InstallWithRPATH(bin_dir,apps,[rel_lib_dir])
54env.Install(src_dir,sources)