forked from Eyescale/Equalizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
80 lines (61 loc) · 2.2 KB
/
Makefile
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!gmake
.PHONY: debug tests cdash release xcode debug_glx docs clean clobber
BUILD ?= debug
PYTHON ?= python
CMAKE ?= cmake
default: $(BUILD) RELNOTES.txt README.rst
all: debug release RELNOTES.txt README.rst
clobber:
rm -rf debug release XCode debug_glx man cdash
clean:
@-$(MAKE) -C debug clean
@-$(MAKE) -C release clean
@-$(MAKE) -C XCode clean
@-$(MAKE) -C debug_glx clean
@-$(MAKE) -C cdash clean
@rm -rf man
.DEFAULT:
@$(MAKE) -C $(BUILD) $(MAKECMDGOALS)
debug: debug/Makefile
@$(MAKE) -C $@
release: release/Makefile
@$(MAKE) -C $@
debug_glx: debug_glx/Makefile
@$(MAKE) -C $@
cdash: cdash/Makefile
@$(MAKE) -C cdash clean
@$(MAKE) -C cdash Continuous
debug/Makefile:
@mkdir -p debug
@cd debug; $(CMAKE) .. -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX:PATH=install -DEQUALIZER_RUN_GPU_TESTS=ON
release/Makefile:
@mkdir -p release
@cd release; $(CMAKE) .. -DCMAKE_BUILD_TYPE=Release
cdash/Makefile:
@mkdir -p cdash
@cd cdash; env CXXFLAGS="-fprofile-arcs -ftest-coverage" CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="-fprofile-arcs -ftest-coverage" $(CMAKE) ..
debug_glx/Makefile:
@mkdir -p debug_glx
@cd debug_glx; $(CMAKE) .. -DEQUALIZER_PREFER_AGL=OFF
package: release/Makefile ../equalizergraphics.com/build/documents/Developer/API
@$(MAKE) -C release doxygen
@$(MAKE) -C release package
xcode:
@mkdir -p XCode
@cd XCode; $(CMAKE) -G Xcode .. -DCMAKE_INSTALL_PREFIX:PATH=install
open XCode/Equalizer.xcodeproj
tests: debug/Makefile
@$(MAKE) -C debug tests
docs: ../equalizergraphics.com/build/documents/Developer/API
@$(MAKE) -C $(BUILD) doxygen
.PHONY: ../equalizergraphics.com/build/documents/Developer/API/internal
../equalizergraphics.com/build/documents/Developer/API/internal:
@mkdir -p ../equalizergraphics.com/build/documents/Developer/API/internal
.PHONY: ../equalizergraphics.com/build/documents/Developer/API
../equalizergraphics.com/build/documents/Developer/API: ../equalizergraphics.com/build/documents/Developer/API/internal $(BUILD)/Makefile
@mkdir -p ../equalizergraphics.com/build/collage/documents/Developer/API
RELNOTES.txt: libs/RelNotes.dox
-links -dump -width 65 $< > $@.tmp && mv $@.tmp $@
README.rst: libs/RelNotes.dox
-$(PYTHON) CMake/html2rst.py $< > $@