This repository has been archived on 2018-12-13. You can view files and clone it, but cannot push or open issues or pull requests.
arma-flow/Makefile

17 lines
380 B
Makefile

SOURCES = $(wildcard src/*.cpp)
OBJECTS = $(SOURCES:%.cpp=%.o)
APPLICATION = arma-flow
CXXFLAGS = -Wall -c -O2 -std=c++17
LDFLAGS = -larmadillo -ljanus -lstdc++fs
all: ${OBJECTS} ${APPLICATION}
${APPLICATION}: ${OBJECTS}
${CXX} -o $@ ${OBJECTS} ${LDFLAGS}
${OBJECTS}:
${CXX} ${CXXFLAGS} -o $@ ${@:%.o=%.cpp}
clean:
rm -f ${APPLICATION} ${OBJECTS}