forked from xenserver/xha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·64 lines (54 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
#
# Top-level Makefile
#
# This makefile installs the debug version (compiled without NDEBUG).
# To install release version, do "make release-install" or
# modify this makefile to do release install by default. See #here below.
#
.PHONY: build clean debug release
all: debug release
debug:
@mkdir -p debug
@cd include; make DEFMAKE=default-debug.mk
@cd lib; make DEFMAKE=default-debug.mk
@cd daemon; make DEFMAKE=default-debug.mk
@cd commands; make DEFMAKE=default-debug.mk
@cd scripts; make DEFMAKE=default-debug.mk
release:
@mkdir -p release
@cd include; make DEFMAKE=default-release.mk
@cd lib; make DEFMAKE=default-release.mk
@cd daemon; make DEFMAKE=default-release.mk
@cd commands; make DEFMAKE=default-release.mk
@cd scripts; make DEFMAKE=default-release.mk
clean: debug-clean release-clean
debug-clean:
@cd include; make clean DEFMAKE=default-debug.mk
@cd lib; make clean DEFMAKE=default-debug.mk
@cd daemon; make clean DEFMAKE=default-debug.mk
@cd commands; make clean DEFMAKE=default-debug.mk
@cd scripts; make clean DEFMAKE=default-debug.mk
-rmdir debug
release-clean:
@cd include; make clean DEFMAKE=default-release.mk
@cd lib; make clean DEFMAKE=default-release.mk
@cd daemon; make clean DEFMAKE=default-release.mk
@cd commands; make clean DEFMAKE=default-release.mk
@cd scripts; make clean DEFMAKE=default-release.mk
-rmdir release
#here
install: debug-install
debug-install:
@mkdir -p debug
@cd include; make install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk
@cd lib; make install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk
@cd daemon; make install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk
@cd commands; make install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk
@cd scripts; make install DESTDIR=$(DESTDIR) DEFMAKE=default-debug.mk
release-install:
@mkdir -p release
@cd include; make install DESTDIR=$(DESTDIR) DEFMAKE=default-release.mk
@cd lib; make install DESTDIR=$(DESTDIR) DEFMAKE=default-release.mk
@cd daemon; make install DESTDIR=$(DESTDIR) DEFMAKE=default-release.mk
@cd commands; make install DESTDIR=$(DESTDIR) DEFMAKE=default-release.mk
@cd scripts; make install DESTDIR=$(DESTDIR) DEFMAKE=default-release.mk