-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.in
More file actions
37 lines (25 loc) · 883 Bytes
/
Makefile.in
File metadata and controls
37 lines (25 loc) · 883 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
30
31
32
33
34
35
36
37
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
LDFLAGS = @LDFLAGS@
WFLAGS = @WFLAGS@
MAKEFLAGS = @MAKEFLAGS@
#------------------------------------------------------------------------------#
APP = bin/concubine
SRC = $(subst ../src/,,$(sort $(wildcard ../src/*.cc)))
OBJ = $(subst .cc,.o,$(filter-out main.cc,$(SRC)))
VPATH = ../src
$(APP): main.cc $(OBJ) Makefile
mkdir -p bin
$(CXX) $(CXXFLAGS) $(WFLAGS) $(OBJ) $< $(LDFLAGS) -o $@
#------------------------------------------------------------------------------#
# auto-dependency generation
# see http://make.mad-scientist.net/papers/advanced-auto-dependency-generation
DEPFLAGS = -MT $@ -MMD -MP -MF $*.d
%.o: %.cc
%.o: %.cc %.d
$(CXX) $(CXXFLAGS) $(DEPFLAGS) $(WFLAGS) -c $<
%.d: ;
.PRECIOUS: %.d
include $(wildcard *.d)
#------------------------------------------------------------------------------#
include ../test/gtest.mk