-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
109 lines (90 loc) · 2.93 KB
/
Makefile.in
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
## -*- mode: Makefile -*-
##
## Copyright (c) 2011, 2012, 2013, 2014 The University of Utah
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of
## the License, or (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
###############################################################################
SRCDIR = @srcdir@
TOP_SRCDIR = @top_srcdir@
SUBDIR =
OBJDIR = @top_builddir@
include Makeconf
SUBDIRS = include lib dwdebug
ifeq ($(ENABLE_XENACCESS),"1")
SUBDIRS += xenaccess xentt vmprobes # vmps vmfs vmtap
endif
ifeq ($(ENABLE_LIBVMI),"1")
SUBDIRS += vmprobes
endif
SUBDIRS += target
ifeq ("@ENABLE_TESTS@","1")
SUBDIRS += tests
endif
SUBDIRS += tools
ifeq ("@ENABLE_ASM@","1")
SUBDIRS += asm/moti
endif
#
# We have to stagger the XML build, because stuff in analysis/ depends on
# xml/schema if ENABLE_SOAP!
#
ifeq ("@ENABLE_SOAP@","1")
SUBDIRS += xml/schema
endif
#
# This must follow the xml build, because it *can* make use of the
# soap-generated serializers/deserializers.
#
SUBDIRS += analysis
#
# Continue the XML SOAP build...
#
ifeq ("@ENABLE_SOAP@","1")
SUBDIRS += xml
endif
.NOTPARALLEL:
all: all-subdirs
include $(TOP_SRCDIR)/Makerules
install: install-local install-subdirs
install-local:
@echo "Installing config.h"
-mkdir -p $(INSTALL_INCDIR)
$(INSTALL_DATA) $(OBJDIR)/config.h $(INSTALL_INCDIR)
test:
make -C tests test
# We use separate src and obj trees, so the traditional distclean to
# clean "made" files from a mingled source-and-obj tree is unnecessary.
# However, this may be useful if you mistakenly configure and make a src tree.
clean: clean-subdirs
distclean: distclean-subdirs
rm -rf Makeconf Makefile config.status config.cache config.log autom4te.cache
rm -f $(DISTCLEAN_FILES)
#
# Here's a different approch to recover from just configure problems. It cleans
# all files from an obj tree that have a corresponding .in file in the src tree.
undo-configure:
find $SRCDIR -name '*.in' -a -not -name configure.in | \
sed -e "s;$SRCDIR;$OBJDIR;" -e 's;[.]in$;;' | xargs rm -f
# How to recursively descend into subdirectories to make general
# targets such as `all'.
#
%.MAKE:
@$(MAKE) -C $(dir $@) $(basename $(notdir $@))
%-subdirs: $(addsuffix /%.MAKE,$(SUBDIRS)) ;
# By default, make any target by descending into subdirectories.
%: %-subdirs ;
.PHONY: install
# Get rid of a bunch of nasty built-in implicit rules.
.SUFFIXES: