SConscript (5397:58e5b68f7095) | SConscript (5601:1acb7016d0e4) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 96 unchanged lines hidden (view full) --- 105m4env.Append(M4FLAGS='-DSRCDIR=%s' % Dir('.').path) 106m4env['M4COM'] = '$M4 $M4FLAGS $SOURCES > $TARGET' 107m4env.M4(target=File('libelf_convert.c'), 108 source=[File('elf_types.m4'), File('libelf_convert.m4')]) 109m4env.M4(target=File('libelf_fsize.c'), 110 source=[File('elf_types.m4'), File('libelf_fsize.m4')]) 111m4env.M4(target=File('libelf_msize.c'), 112 source=[File('elf_types.m4'), File('libelf_msize.m4')]) | 1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 96 unchanged lines hidden (view full) --- 105m4env.Append(M4FLAGS='-DSRCDIR=%s' % Dir('.').path) 106m4env['M4COM'] = '$M4 $M4FLAGS $SOURCES > $TARGET' 107m4env.M4(target=File('libelf_convert.c'), 108 source=[File('elf_types.m4'), File('libelf_convert.m4')]) 109m4env.M4(target=File('libelf_fsize.c'), 110 source=[File('elf_types.m4'), File('libelf_fsize.m4')]) 111m4env.M4(target=File('libelf_msize.c'), 112 source=[File('elf_types.m4'), File('libelf_msize.m4')]) |
113m4env.Library('elf', elf_files) | |
114 | 113 |
114# Build libelf as a static library with PIC code so it can be linked 115# into either m5 or the library 116m4env.Library('elf', [m4env.SharedObject(f) for f in elf_files]) 117 |
|
115env.Append(CPPPATH=Dir('.')) 116env.Append(LIBS=['elf']) 117env.Append(LIBPATH=[Dir('.')]) 118 | 118env.Append(CPPPATH=Dir('.')) 119env.Append(LIBS=['elf']) 120env.Append(LIBPATH=[Dir('.')]) 121 |