This repository was archived by the owner on Apr 23, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,19 @@ LDFLAGS += -lm
18
18
#
19
19
CURRENT_DIR := $(shell cd .; pwd)
20
20
BENCH_NAME := $(subst $(shell cd .. ; pwd) ,,$(CURRENT_DIR ) )
21
- SPEC_SUBDIR := $(subst $(shell cd ../..; pwd) ,,$(CURRENT_DIR ) )
22
21
23
22
# Remove any leading /'s from the paths
24
23
BENCH_NAME := $(patsubst /% ,% ,$(BENCH_NAME ) )
24
+
25
+ # # SPEC_SUITEDIR - Allow SPEC configuration files to override "CINT2000" with
26
+ # # something else.
27
+
28
+ ifndef SPEC_SUITEDIR
29
+ SPEC_SUBDIR := $(subst $(shell cd ../..; pwd) ,,$(CURRENT_DIR ) )
25
30
SPEC_SUBDIR := $(patsubst /% ,% ,$(SPEC_SUBDIR ) )
31
+ else
32
+ SPEC_SUBDIR := $(SPEC_SUITEDIR ) /$(BENCH_NAME )
33
+ endif
26
34
27
35
ifndef SPEC_BENCH_DIR
28
36
SPEC_BENCH_DIR := $(SPEC_ROOT ) /$(SPEC_SUBDIR )
31
39
PROG := $(BENCH_NAME )
32
40
ifndef Source
33
41
Source := $(wildcard $(SPEC_BENCH_DIR ) /src/* .c \
42
+ $(SPEC_BENCH_DIR ) /src/* .C \
34
43
$(SPEC_BENCH_DIR ) /src/* .cc \
35
44
$(SPEC_BENCH_DIR ) /src/* .cpp \
36
45
$(SPEC_BENCH_DIR ) /src/* .f \
46
+ $(SPEC_BENCH_DIR ) /src/* .F \
37
47
$(SPEC_BENCH_DIR ) /src/* .f90 \
38
48
$(SPEC_BENCH_DIR ) /src/* .F90)
39
49
endif
You can’t perform that action at this time.
0 commit comments