comparison make/linux/makefiles/adlc.make @ 6602:282abd0fd878

7188168: 7071904 broke the DEBUG_BINARIES option on Linux Summary: Change DEBUG_BINARIES option logic to be more clear. Reviewed-by: fparain, andrew
author dcubed
date Thu, 02 Aug 2012 14:54:14 -0700
parents 719f7007c8e8
children c38f13903fdf 45535ab90688
comparison
equal deleted inserted replaced
6601:8e69438de9c6 6602:282abd0fd878
1 # 1 #
2 # Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. 7 # published by the Free Software Foundation.
131 131
132 # Get a unique temporary directory name, so multiple makes can run in parallel. 132 # Get a unique temporary directory name, so multiple makes can run in parallel.
133 # Note that product files are updated via "mv", which is atomic. 133 # Note that product files are updated via "mv", which is atomic.
134 TEMPDIR := $(OUTDIR)/mktmp$(shell echo $$$$) 134 TEMPDIR := $(OUTDIR)/mktmp$(shell echo $$$$)
135 135
136 # Debuggable by default 136 ifneq ($(DEBUG_BINARIES), true)
137 CFLAGS += -g 137 # Debuggable by default (unless already done by DEBUG_BINARIES)
138 CFLAGS += -g
139 endif
138 140
139 # Pass -D flags into ADLC. 141 # Pass -D flags into ADLC.
140 ADLCFLAGS += $(SYSDEFS) 142 ADLCFLAGS += $(SYSDEFS)
141 143
142 # Note "+="; it is a hook so flags.make can add more flags, like -g or -DFOO. 144 # Note "+="; it is a hook so flags.make can add more flags, like -g or -DFOO.