added separated debug makefiles and some optimization options

Thu, 11 Oct 2012 08:42:56 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 11 Oct 2012 08:42:56 +0200
changeset 66
fcfe8c5e9fe1
parent 65
7b2f2cab6348
child 67
27e67e725d35

added separated debug makefiles and some optimization options

gcc-debug.mk file | annotate | diff | comparison | revisions
gcc.mk file | annotate | diff | comparison | revisions
suncc-debug.mk file | annotate | diff | comparison | revisions
suncc.mk file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gcc-debug.mk	Thu Oct 11 08:42:56 2012 +0200
     1.3 @@ -0,0 +1,41 @@
     1.4 +#
     1.5 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     1.6 +#
     1.7 +# Copyright 2011 Olaf Wintermann. All rights reserved.
     1.8 +#
     1.9 +# Redistribution and use in source and binary forms, with or without
    1.10 +# modification, are permitted provided that the following conditions are met:
    1.11 +#
    1.12 +#   1. Redistributions of source code must retain the above copyright
    1.13 +#      notice, this list of conditions and the following disclaimer.
    1.14 +#
    1.15 +#   2. Redistributions in binary form must reproduce the above copyright
    1.16 +#      notice, this list of conditions and the following disclaimer in the
    1.17 +#      documentation and/or other materials provided with the distribution.
    1.18 +#
    1.19 +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    1.20 +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.21 +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.22 +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
    1.23 +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    1.24 +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    1.25 +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    1.26 +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    1.27 +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    1.28 +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    1.29 +# POSSIBILITY OF SUCH DAMAGE.
    1.30 +#
    1.31 +
    1.32 +CC = gcc
    1.33 +LD = gcc
    1.34 +AR = ar
    1.35 +RM = rm
    1.36 +
    1.37 +CFLAGS  = -std=gnu99 -g -fstrict-aliasing -Wstrict-aliasing
    1.38 +LDFLAGS = 
    1.39 +ARFLAGS = -r
    1.40 +RMFLAGS = -f
    1.41 +
    1.42 +OBJ_EXT = o
    1.43 +LIB_EXT = a
    1.44 +APP_EXT =
     2.1 --- a/gcc.mk	Wed Oct 10 14:26:53 2012 +0200
     2.2 +++ b/gcc.mk	Thu Oct 11 08:42:56 2012 +0200
     2.3 @@ -31,7 +31,7 @@
     2.4  AR = ar
     2.5  RM = rm
     2.6  
     2.7 -CFLAGS  = -std=gnu99 -g
     2.8 +CFLAGS  = -std=gnu99 -O3 -fstrict-aliasing
     2.9  LDFLAGS = 
    2.10  ARFLAGS = -r
    2.11  RMFLAGS = -f
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/suncc-debug.mk	Thu Oct 11 08:42:56 2012 +0200
     3.3 @@ -0,0 +1,42 @@
     3.4 +#
     3.5 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     3.6 +#
     3.7 +# Copyright 2011 Olaf Wintermann. All rights reserved.
     3.8 +#
     3.9 +# Redistribution and use in source and binary forms, with or without
    3.10 +# modification, are permitted provided that the following conditions are met:
    3.11 +#
    3.12 +#   1. Redistributions of source code must retain the above copyright
    3.13 +#      notice, this list of conditions and the following disclaimer.
    3.14 +#
    3.15 +#   2. Redistributions in binary form must reproduce the above copyright
    3.16 +#      notice, this list of conditions and the following disclaimer in the
    3.17 +#      documentation and/or other materials provided with the distribution.
    3.18 +#
    3.19 +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    3.20 +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    3.21 +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    3.22 +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
    3.23 +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    3.24 +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    3.25 +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    3.26 +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    3.27 +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    3.28 +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    3.29 +# POSSIBILITY OF SUCH DAMAGE.
    3.30 +#
    3.31 +
    3.32 +CC = cc
    3.33 +LD = cc
    3.34 +AR = ar
    3.35 +RM = rm
    3.36 +
    3.37 +CFLAGS  = -g -xalias_level=compatible
    3.38 +LDFLAGS = 
    3.39 +ARFLAGS = -r
    3.40 +RMFLAGS = -f
    3.41 +
    3.42 +OBJ_EXT = o
    3.43 +LIB_EXT = a
    3.44 +APP_EXT =
    3.45 +
     4.1 --- a/suncc.mk	Wed Oct 10 14:26:53 2012 +0200
     4.2 +++ b/suncc.mk	Thu Oct 11 08:42:56 2012 +0200
     4.3 @@ -31,7 +31,7 @@
     4.4  AR = ar
     4.5  RM = rm
     4.6  
     4.7 -CFLAGS  = -g
     4.8 +CFLAGS  = -O -xalias_level=compatible
     4.9  LDFLAGS = 
    4.10  ARFLAGS = -r
    4.11  RMFLAGS = -f

mercurial