This repository has been archived on 2023-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
MINDLE/Makefile
Samuel FORESTIER 5cf2d72fc2 Removes irrelevant information from README, improves .gitignore and...
... changes target binaries extension (*.bin --> *.out)
2017-12-23 10:35:13 -05:00

49 lines
1.4 KiB
Makefile

# Makefile for: MINDLE
CXX=g++
GFLAGS=-lsfml-graphics -lsfml-window -lsfml-system
LIN=LinearRegression
POL=PolynomialRegression
GRAPH=Modules/Graphics
BIN=bin
ifdef DEBUG
CXXFLAGS=-g -std=c++11 -Wall -Wextra -Wpedantic -Wshadow -Wno-missing-field-initializers -Wstrict-overflow
LDFLAGS=-g -ansi -std=c++11 -Wall -Wextra -Wpedantic -Wshadow -Wno-missing-field-initializers -Wstrict-overflow
else
CXXFLAGS=-O3 -std=c++11 -Wall -Wextra -Wpedantic -Wshadow -Wno-missing-field-initializers -Wstrict-overflow
LDFLAGS=-O3 -ansi -std=c++11 -Wall -Wextra -Wpedantic -Wshadow -Wno-missing-field-initializers -Wstrict-overflow
endif
all: linearRegression.out affineRegression.out linearRegressionVectors.out polynomialRegression.out
# Linear Regression
linearRegression.out: $(LIN)/linearRegression.cpp $(GRAPH)/graphics.hpp
$(CXX) -o $(BIN)/$@ $^ $(CXXFLAGS) $(GFLAGS) $(LDFLAGS)
# Affine Regression
affineRegression.out: $(LIN)/affineRegression.cpp $(GRAPH)/graphics.hpp
$(CXX) -o $(BIN)/$@ $^ $(GFLAGS) $(LDFLAGS)
# Linear Regression Vectors
linearRegressionVectors.out: $(LIN)/linearRegressionVectors.cpp
$(CXX) -o $(BIN)/$@ $^ $(LDFLAGS)
# Polynomial Regression
polynomialRegression.out: $(POL)/polynomialRegression.cpp
$(CXX) -o $(BIN)/$@ $^ $(CXXFLAGS) $(LDFLAGS)
.SILENT:
.PHONY: clean
clean:
find . -name '*.bin' -delete
find . -name '*.o' -delete
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete