|
70 | 70 | #=== Configure MADMATRIX_BUILDDIR |
71 | 71 |
|
72 | 72 | # Build directory "full" tag (used for build lockfiles to prevent mixing builds with different options) |
73 | | -override DIRTAG := $(patsubst cpp%,%,$(BACKEND))_$(FPTYPE)_inl$(HELINL)_hrd$(HRDCOD) |
| 73 | +override DIRTAG := $(patsubst cpp%%,%%,$(BACKEND))_$(FPTYPE)_inl$(HELINL)_hrd$(HRDCOD) |
74 | 74 |
|
75 | 75 | # Build directory: current directory by default, or build.<BACKEND> if USEBUILDDIR==1 |
76 | 76 | # NB: using '=' (not ':=') ensures BACKEND is evaluated lazily after potential cppauto resolution |
@@ -667,10 +667,10 @@ endif |
667 | 667 | #=== Configure build directories and build lockfiles === |
668 | 668 |
|
669 | 669 | # Build lockfile "full" tag (defines full specification of object-file builds that cannot be intermixed) |
670 | | -override TAG = $(patsubst cpp%,%,$(BACKEND))_$(FPTYPE)_inl$(HELINL)_hrd$(HRDCOD) |
| 670 | +override TAG = $(patsubst cpp%%,%%,$(BACKEND))_$(FPTYPE)_inl$(HELINL)_hrd$(HRDCOD) |
671 | 671 |
|
672 | 672 | # Export TAG (so that there is no need to check/define it again in src/Makefile) |
673 | | -xport TAG |
| 673 | +export TAG |
674 | 674 |
|
675 | 675 | # Build directory for object files: current directory by default, or build.<BACKEND> if USEBUILDDIR==1 |
676 | 676 | override BUILDDIR = $(MADMATRIX_BUILDDIR) |
@@ -752,11 +752,11 @@ endif |
752 | 752 | # incompatible backends (different BACKEND, FPTYPE, etc.) in the same directory. |
753 | 753 | # Use USEBUILDDIR=1 to build for multiple backends simultaneously without cleaning. |
754 | 754 | ifeq ($(GPUCC),) |
755 | | -$(BUILDDIR)/%.o : %.cc *.h $(SRC)/*.h $(BUILDDIR)/.build.$(TAG) |
| 755 | +$(BUILDDIR)/%%.o : %%.cc *.h $(SRC)/*.h $(BUILDDIR)/.build.$(TAG) |
756 | 756 | @if [ ! -d $(BUILDDIR) ]; then echo "mkdir -p $(BUILDDIR)"; mkdir -p $(BUILDDIR); fi |
757 | 757 | $(CXX) $(CPPFLAGS) $(INCFLAGS) $(CXXFLAGS) -c $< -o $@ |
758 | 758 | else |
759 | | -$(BUILDDIR)/%.o : %.cc *.h $(SRC)/*.h $(BUILDDIR)/.build.$(TAG) |
| 759 | +$(BUILDDIR)/%%.o : %%.cc *.h $(SRC)/*.h $(BUILDDIR)/.build.$(TAG) |
760 | 760 | @if [ ! -d $(BUILDDIR) ]; then echo "mkdir -p $(BUILDDIR)"; mkdir -p $(BUILDDIR); fi |
761 | 761 | $(GPUCC) $(CPPFLAGS) $(INCFLAGS) $(GPUFLAGS) -c -x $(GPULANGUAGE) $< -o $@ |
762 | 762 | endif |
|
0 commit comments