SConscript (4484:7c56a6c9c265) SConscript (4487:a174ee67da68)
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

--- 74 unchanged lines hidden (view full) ---

83ElfFile('libelf_shdr.c')
84ElfFile('libelf_xlate.c')
85
86ElfFile('libelf_convert.c')
87ElfFile('libelf_fsize.c')
88ElfFile('libelf_msize.c')
89
90m4env = Environment(ENV=os.environ)
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

--- 74 unchanged lines hidden (view full) ---

83ElfFile('libelf_shdr.c')
84ElfFile('libelf_xlate.c')
85
86ElfFile('libelf_convert.c')
87ElfFile('libelf_fsize.c')
88ElfFile('libelf_msize.c')
89
90m4env = Environment(ENV=os.environ)
91m4env.Append(M4FLAGS='-DSRCDIR=%s' % Dir('.'))
92m4env['M4COM'] = 'cd ${SOURCE.rsrcdir} && $M4 $M4FLAGS $SOURCES > ${TARGET.abspath}'
91m4env.Append(M4FLAGS='-DSRCDIR=%s' % Dir('.').path)
92m4env['M4COM'] = '$M4 $M4FLAGS $SOURCES > $TARGET'
93m4env.M4(target=File('libelf_convert.c'),
94 source=[File('elf_types.m4'), File('libelf_convert.m4')])
95m4env.M4(target=File('libelf_fsize.c'),
96 source=[File('elf_types.m4'), File('libelf_fsize.m4')])
97m4env.M4(target=File('libelf_msize.c'),
98 source=[File('elf_types.m4'), File('libelf_msize.m4')])
99m4env.Library('elf', elf_files)
100
101env.Append(CPPPATH=Dir('.'))
102env.Append(LIBS=['elf'])
103env.Append(LIBPATH=[Dir('.')])
93m4env.M4(target=File('libelf_convert.c'),
94 source=[File('elf_types.m4'), File('libelf_convert.m4')])
95m4env.M4(target=File('libelf_fsize.c'),
96 source=[File('elf_types.m4'), File('libelf_fsize.m4')])
97m4env.M4(target=File('libelf_msize.c'),
98 source=[File('elf_types.m4'), File('libelf_msize.m4')])
99m4env.Library('elf', elf_files)
100
101env.Append(CPPPATH=Dir('.'))
102env.Append(LIBS=['elf'])
103env.Append(LIBPATH=[Dir('.')])