125 |
125 |
126 # Get a unique temporary directory name, so multiple makes can run in parallel. |
126 # Get a unique temporary directory name, so multiple makes can run in parallel. |
127 # Note that product files are updated via "mv", which is atomic. |
127 # Note that product files are updated via "mv", which is atomic. |
128 TEMPDIR := $(OUTDIR)/mktmp$(shell echo $$$$) |
128 TEMPDIR := $(OUTDIR)/mktmp$(shell echo $$$$) |
129 |
129 |
|
130 # Debuggable by default |
|
131 CFLAGS += -g |
|
132 |
130 # Pass -D flags into ADLC. |
133 # Pass -D flags into ADLC. |
131 ADLCFLAGS += $(SYSDEFS) |
134 ADLCFLAGS += $(SYSDEFS) |
132 |
135 |
133 # Note "+="; it is a hook so flags.make can add more flags, like -g or -DFOO. |
136 # Note "+="; it is a hook so flags.make can add more flags, like -g or -DFOO. |
134 ADLCFLAGS += -q -T |
137 ADLCFLAGS += -q -T |
135 |
138 |
136 # Normally, debugging is done directly on the ad_<arch>*.cpp files. |
139 # Normally, debugging is done directly on the ad_<arch>*.cpp files. |
137 # But -g will put #line directives in those files pointing back to <arch>.ad. |
140 # But -g will put #line directives in those files pointing back to <arch>.ad. |
138 #ADLCFLAGS += -g |
141 ADLCFLAGS += -g |
139 |
142 |
140 ifdef LP64 |
143 ifdef LP64 |
141 ADLCFLAGS += -D_LP64 |
144 ADLCFLAGS += -D_LP64 |
142 else |
145 else |
143 ADLCFLAGS += -U_LP64 |
146 ADLCFLAGS += -U_LP64 |