-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 765 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.PHONY: clean clean-build build install uninstall
.DEFAULT_GOAL := build
CXX = g++
CXXFLAGS = -Wno-deprecated -D LINUX -std=c++0x
PREFIX = /usr/local
SOURCES = src/Main.cpp src/ReconstructOctree.cpp src/InitPara.cpp src/Octree.cpp src/TriSurfMesh.cpp
INCLUDES = -Iinclude/
DEPS = -lpng -lX11 -lpthread
clean: clean-build ## remove all build artifacts
clean-build: ## remove build artifacts
rm -fr build/
rm -fr dist/
build: clean ## builds source and wheel package
mkdir -pv build/bin
$(CXX) $(CXXFLAGS) $(SOURCES) $(INCLUDES) $(DEPS) -o build/bin/reconstruction3Dpers
install: build
mkdir -pv $(PREFIX)/bin
cp -v build/bin/reconstruction3Dpers $(PREFIX)/bin/reconstruction3Dpers
.PHONY: uninstall
uninstall:
rm -vf $(PREFIX)/bin/reconstruction3Dpers