Skip to content

Commit

Permalink
add targets for all 3 builds explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
roiser committed May 24, 2023
1 parent 2db69f4 commit 237620c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions epochX/cudacpp/gg_tt.mad/SubProcesses/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,19 @@ else
override LIBFLAGSRPATH = -Wl,-rpath,'$$ORIGIN/$(LIBDIR)'
endif

.PHONY: madeventfortran madeventcuda madeventcpp

madeventfortran: $(PROG)

madeventcpp: $(CUDACPP_BUILDDIR)/c$(PROG)_cudacpp
rm -f $(CUDACPP_BUILDDIR)/$(PROG)
cd $(CUDACPP_BUILDDIR); ln -s c$(PROG)_cudacpp madevent

madeventcuda: $(CUDACPP_BUILDDIR)/c$(PROG)_cudacpp
rm -f $(CUDACPP_BUILDDIR)/$(PROG)
cd $(CUDACPP_BUILDDIR); ln -s g$(PROG)_cudacpp madevent


# Also builds g$(PROG)_cudacpp if $(CUDACPP_CULIB) exists (improved patch for cpp-only builds #503)
$(CUDACPP_BUILDDIR)/c$(PROG)_cudacpp: $(PROCESS) $(DSIG_cudacpp) auto_dsig.o $(LIBS) $(MATRIX) counters.o ompnumthreads.o $(CUDACPP_BUILDDIR)/.cudacpplibs
$(FC) -o $(CUDACPP_BUILDDIR)/c$(PROG)_cudacpp $(PROCESS) $(DSIG_cudacpp) auto_dsig.o $(MATRIX) $(LINKLIBS) $(BIASDEPENDENCIES) $(OMPFLAGS) counters.o ompnumthreads.o -L$(LIBDIR)/$(CUDACPP_BUILDDIR) -l$(CUDACPP_COMMONLIB) -l$(CUDACPP_CXXLIB) $(LIBFLAGSRPATH) $(LDFLAGS)
Expand Down

0 comments on commit 237620c

Please # to comment.