-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathMakefile
63 lines (50 loc) · 1.73 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
# csrc/Makefile
#
# Part of the CCNx distribution.
#
# Copyright (C) 2009-2013 Palo Alto Research Center, Inc.
#
# This work is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 2 as published by the
# Free Software Foundation.
# This work 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.
#
SUBDIRS = lib ccnd sync ccnr libexec cmd util tests exttests
OBJTREE = build
MAKEF = -f ../conf.mk -f dir.mk -f ../subr.mk -f depend.mk
CFLAGS = $(COPT)
default:
conf.mk:
./configure
include conf.mk
default all clean depend coverage test check shared install uninstall config_subdir: conf.mk subr.mk generic.mk _always
test -d include/ccn || (test -d ../include/ccn && mkdir -p include && ln -s ../../include/ccn include/ccn)
for i in $(SUBDIRS); do \
(cd "$$i" && pwd && :>> depend.mk && $(MAKE) $(MAKEF) "COPT=$(CFLAGS)" CFLAGS='$$(REAL_CFLAGS)' SRCDIR=../$(SRCDIR)/$$i $@) || exit 1; \
done
@test -d $(OBJTREE) && echo "+++ NOTE - $(OBJTREE) exists" ||:
@rm -f _always
subr.mk generic.mk:
test -f ./$(SRCDIR)/$@ && ln -s ./$(SRCDIR)/$@
test check: default
objtree: conf.mk _always
mkdir -p $(OBJTREE)
echo SRCDIR = .. > $(OBJTREE)/Makefile
cat Makefile >> $(OBJTREE)/Makefile
for i in $(SUBDIRS); do \
mkdir -p $(OBJTREE) && \
(cd $$i && pwd && \
$(MAKE) $(MAKEF) OBJDIR=../$(OBJTREE)/$$i SRCDIR=. \
../$(OBJTREE)/$$i/dir.mk \
|| exit 1); \
done
cd $(OBJTREE) && ../configure && make depend
html: _always
documentation: _always
doxygen
dist-docs: _always
doxygen Doxyfile.dist
_always:
.PHONY: _always