5cf2d72fc2
... changes target binaries extension (*.bin --> *.out)
49 lines
1.4 KiB
Makefile
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
|