forked from bradfa/tlpi-dist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (42 loc) · 1.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
# Makefile to build all programs in all subdirectories
#
# DIRS is a list of all subdirectories containing makefiles
# (The library directory is first so that the library gets built first)
#
DIRS = lib \
acl altio \
cap \
daemons dirs_links \
filebuff fileio filelock files filesys getopt \
inotify \
loginacct \
memalloc \
mmap \
pgsjc pipes pmsg \
proc proccred procexec procpri procres \
progconc \
psem pshm pty \
shlibs \
signals sockets \
svipc svmsg svsem svshm \
sysinfo \
syslim \
threads time timers tty \
users_groups \
vdso \
vmem \
xattr
# The "namespaces" and "seccomp" directories are deliberately excluded from
# the above list because much of the code in those directories requires a
# relatively recent kernel and userspace to build. Nevertheless, each of
# those directories contains a Makefile.
BUILD_DIRS = ${DIRS}
# Dummy targets for building and clobbering everything in all subdirectories
all:
@ echo ${BUILD_DIRS}
@ for dir in ${BUILD_DIRS}; do (cd $${dir}; ${MAKE}) ; \
if test $$? -ne 0; then break; fi; done
allgen:
@ for dir in ${BUILD_DIRS}; do (cd $${dir}; ${MAKE} allgen) ; done
clean:
@ for dir in ${BUILD_DIRS}; do (cd $${dir}; ${MAKE} clean) ; done