File: Makefile.outoftree

package info (click to toggle)
mia 2.4.3-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,964 kB
  • ctags: 18,491
  • sloc: cpp: 153,197; python: 1,254; sh: 311; xml: 127; makefile: 27; csh: 24; ansic: 9
file content (25 lines) | stat: -rw-r--r-- 629 bytes parent folder | download | duplicates (4)
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
.PHONY: Default Release Debug 

CXXFLAGS=-std=c++0x

all: Default

Default: build.stamp build/CMakeCache.txt
	cd build && make -j 7 

build/CMakeCache.txt: build.stamp 
	cd build && cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXXFLAGS="$(CXXFLAGS)" ..

build.stamp:
	[ -d build ] || mkdir -p build 	
	touch build.stamp

Debug: build-debug.stamp build-debug/CMakeCache.txt
	cd build-debug && make -j 7 

build-debug/CMakeCache.txt: build-debug.stamp 
	cd build-debug && cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXXFLAGS="$(CXXFLAGS)" ..

build-debug.stamp:
	[ -d build-debug ] || mkdir -p build-debug 	
	touch build-debug.stamp