SRCS=$(wildcard *.cpp) BINS=$(SRCS:.cpp=) CXXFLAGS := $(shell pkg-config --cflags ibex) LIBS := $(shell pkg-config --libs ibex) ifeq ($(DEBUG), yes) CXXFLAGS := $(CXXFLAGS) -O1 -g -pg -Wall -frounding-math -fopenmp else CXXFLAGS := $(CXXFLAGS) -O1 -DNDEBUG -Wno-deprecated -frounding-math -fopenmp endif all: $(BINS) % : %.cpp $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $< $(LIBS) clean: rm -f $(BINS)