1# Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors 2# All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3# 4# SPDX-License-Identifier: BSD-2-Clause 5# 6# This file is part of CEED: http://github.com/ceed 7 8COMMON ?= ../../../common.mk 9-include $(COMMON) 10 11CEED_DIR ?= ../../.. 12 13CXXFLAGS = $(OPT) 14CPPFLAGS ?= -I$(CEED_DIR)/include 15LDLIBS ?= -Wl,-rpath,$(abspath $(CEED_DIR)/lib) -L$(CEED_DIR)/lib -lceed -lm 16 17# Verbose mode, V or VERBOSE 18V ?= $(VERBOSE) 19 20all: tuning 21 22%: %.cpp $(ceed.pc) 23 $(call quiet,CXX) $(CPPFLAGS) $(CXXFLAGS) $(abspath $<) -o $@ \ 24 $(LDFLAGS) $(LDLIBS) 25 26# Quiet, color output 27quiet ?= $($(1)) 28 29print: $(ceed.pc) 30 $(info CXX : $(CXX)) 31 $(info CXXFLAGS: $(CXXFLAGS)) 32 $(info CPPFLAGS: $(CPPFLAGS)) 33 $(info LDFLAGS : $(LDFLAGS)) 34 $(info LDLIBS : $(LDLIBS)) 35 @true 36 37clean: 38 $(RM) -r tuning output-nb-*.txt 39 40.PHONY: all clean 41