Switch to unified view

a b/3D Reconstruction/3D Visualization/Dual Marching Cubes/Makefile.inc
1
# shared compiler settings and rules
2
CXX ?= g++
3
CXXWARNINGS ?= -Wall -Wextra -Wundef -pedantic
4
CXXFLAGS ?= ${CXXWARNINGS} -g -O3 -std=c++11
5
6
COMPILE = ${CXX} ${CXXFLAGS} ${CPPFLAGS} -c
7
LINK = ${CXX} ${LDFLAGS}
8
.DEFAULT_GOAL := ${TARGET}
9
10
# link executables from object files
11
%: %.o
12
    ${LINK} -o $@ $^ ${LDLIBS}
13
14
# object files from cpp files
15
%.o: %.cpp
16
    ${COMPILE} -o $@ $<
17
18
# Dependency determination.
19
Makefile.dep: [^_]*.cpp
20
    ${COMPILE} -MM $^ >$@
21
22
-include Makefile.dep