-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
46 lines (38 loc) · 1.09 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
# 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 \
vmem \
xattr
# The "namespaces" directory is deliberately excluded from the above
# list because much of the code requires a fairly recent kernel and
# userspace to build. Nevertheless, there is a Makefile in that directory.
BUILD_DIRS = ${DIRS} ${CDIRS}
# Dummy targets for building and clobbering everything in all subdirectories
all:
@ for dir in ${BUILD_DIRS}; do (cd $${dir}; ${MAKE}) ; 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