|
20 | 20 | # Define the various target sets
|
21 | 21 | #--------------------------------------------------------------------
|
22 | 22 | RecursiveTargets := all clean clean-all install uninstall install-bytecode
|
23 |
| -LocalTargets := all-local clean-local clean-all-local \ |
| 23 | +LocalTargets := all-local clean-local clean-all-local check-local \ |
24 | 24 | install-local printvars uninstall-local \
|
25 | 25 | install-bytecode-local
|
26 |
| -TopLevelTargets := dist dist-check dist-clean tags dist-gzip dist-bzip2 \ |
| 26 | +TopLevelTargets := check dist dist-check dist-clean tags dist-gzip dist-bzip2 \ |
27 | 27 | dist-zip
|
28 | 28 | UserTargets := $(RecursiveTargets) $(LocalTargets) $(TopLevelTargets)
|
29 | 29 | InternalTargets := preconditions distdir dist-hook
|
@@ -154,12 +154,13 @@ ifdef ENABLE_PROFILING
|
154 | 154 | else
|
155 | 155 | ifdef ENABLE_OPTIMIZED
|
156 | 156 | BuildMode := Release
|
157 |
| - CXX.Flags := -O3 -DNDEBUG -finline-functions -felide-constructors -fomit-frame-pointer |
| 157 | + CXX.Flags := -O3 -DNDEBUG -finline-functions \ |
| 158 | + -felide-constructors -fomit-frame-pointer |
158 | 159 | C.Flags := -O3 -DNDEBUG -fomit-frame-pointer
|
159 | 160 | LD.Flags := -O3 -DNDEBUG
|
160 | 161 | else
|
161 | 162 | BuildMode := Debug
|
162 |
| - CXX.Flags := -g -D_DEBUG |
| 163 | + CXX.Flags := -g -D_DEBUG |
163 | 164 | C.Flags := -g -D_DEBUG
|
164 | 165 | LD.Flags := -g -D_DEBUG
|
165 | 166 | KEEP_SYMBOLS := 1
|
@@ -214,10 +215,6 @@ ifndef LLVMGXX
|
214 | 215 | LLVMGXX := PATH=$(LLVMToolDir):$(PATH) $(LLVMGCCDIR)/bin/g++
|
215 | 216 | endif
|
216 | 217 |
|
217 |
| -# Need a better way to compute this. |
218 |
| -LLVMGCCLibDir := $(dir $(shell $(LLVMGCC) -print-file-name=libgcc.a))/ |
219 |
| -LLVMGCCStdCXXLibDir := $(dir $(shell $(LLVMGCC) -print-file-name=libstdc++.a))/ |
220 |
| - |
221 | 218 | #--------------------------------------------------------------------
|
222 | 219 | # Adjust to user's request
|
223 | 220 | #--------------------------------------------------------------------
|
@@ -1089,6 +1086,23 @@ endif
|
1089 | 1086 |
|
1090 | 1087 | endif
|
1091 | 1088 |
|
| 1089 | +############################################################################### |
| 1090 | +# CHECK: Running the test suite |
| 1091 | +############################################################################### |
| 1092 | + |
| 1093 | +check:: |
| 1094 | + $(Verb) if test -d "$(BUILD_OBJ_ROOT)/test" ; then \ |
| 1095 | + if test -f "$(BUILD_OBJ_ROOT)/test/Makefile" ; then \ |
| 1096 | + $(EchoCmd) Running test suite ; \ |
| 1097 | + $(MAKE) -C $(BUILD_OBJ_ROOT)/test check-local \ |
| 1098 | + TESTSUITE=$(TESTSUITE) ; \ |
| 1099 | + else \ |
| 1100 | + $(EchoCmd) No Makefile in test directory ; \ |
| 1101 | + fi ; \ |
| 1102 | + else \ |
| 1103 | + $(EchoCmd) No test directory ; \ |
| 1104 | + fi |
| 1105 | + |
1092 | 1106 | ###############################################################################
|
1093 | 1107 | # DISTRIBUTION: Handle construction of a distribution tarball
|
1094 | 1108 | ###############################################################################
|
@@ -1212,7 +1226,7 @@ $(DistDir)/.makedistdir: $(DistSources)
|
1212 | 1226 | fi ; \
|
1213 | 1227 | $(EchoCmd) Removing old $(DistDir) ; \
|
1214 | 1228 | $(RM) -rf $(DistDir); \
|
1215 |
| - $(EchoCmd) Making 'all' to be sure. ; \ |
| 1229 | + $(EchoCmd) Making 'all' to verify build ; \ |
1216 | 1230 | $(MAKE) all ; \
|
1217 | 1231 | fi
|
1218 | 1232 | $(Echo) Building Distribution Directory $(DistDir)
|
@@ -1296,7 +1310,7 @@ endif
|
1296 | 1310 | ifeq ($(LEVEL),.)
|
1297 | 1311 |
|
1298 | 1312 | #------------------------------------------------------------------------
|
1299 |
| -# Install support for project's include files: |
| 1313 | +# Install support for the project's include files: |
1300 | 1314 | #------------------------------------------------------------------------
|
1301 | 1315 | install-local::
|
1302 | 1316 | $(Echo) Installing include files
|
|
0 commit comments