SConscript (5824:b88edb9f3333) SConscript (5862:50fb2cb40609)
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

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

987
988 # First make a library of everything but main() so other programs can
989 # link against m5.
990 static_lib = new_env.StaticLibrary(libname, static_objs)
991 shared_lib = new_env.SharedLibrary(libname, shared_objs)
992
993 for target, sources in unit_tests:
994 objs = [ new_env.StaticObject(s) for s in sources ]
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

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

987
988 # First make a library of everything but main() so other programs can
989 # link against m5.
990 static_lib = new_env.StaticLibrary(libname, static_objs)
991 shared_lib = new_env.SharedLibrary(libname, shared_objs)
992
993 for target, sources in unit_tests:
994 objs = [ new_env.StaticObject(s) for s in sources ]
995 new_env.Program("unittest/%s.%s" % (target, label), objs + static_lib)
995 new_env.Program("unittest/%s.%s" % (target, label), objs + static_objs)
996
997 # Now link a stub with main() and the static library.
996
997 # Now link a stub with main() and the static library.
998 objects = [new_env.Object(s) for s in cc_bin_sources] + static_lib
998 objects = [new_env.Object(s) for s in cc_bin_sources] + static_objs
999 if strip:
1000 unstripped_exe = exename + '.unstripped'
1001 new_env.Program(unstripped_exe, objects)
1002 if sys.platform == 'sunos5':
1003 cmd = 'cp $SOURCE $TARGET; strip $TARGET'
1004 else:
1005 cmd = 'strip $SOURCE -o $TARGET'
1006 targets = new_env.Command(exename, unstripped_exe, cmd)

--- 51 unchanged lines hidden ---
999 if strip:
1000 unstripped_exe = exename + '.unstripped'
1001 new_env.Program(unstripped_exe, objects)
1002 if sys.platform == 'sunos5':
1003 cmd = 'cp $SOURCE $TARGET; strip $TARGET'
1004 else:
1005 cmd = 'strip $SOURCE -o $TARGET'
1006 targets = new_env.Command(exename, unstripped_exe, cmd)

--- 51 unchanged lines hidden ---