-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (40 loc) · 926 Bytes
/
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
# Global makefile for kbus
#
# You'll need GNU Make for this - or at least a make that supports
# VPATH - sorry.
#
# To build kbus out of tree:
#
# $(MAKE) O=$(OBJECT_LOCATION)
#
# To install kbus:
#
# $(MAKE) O=$(OBJECT_LOCATION) DESTDIR=$(DESTDIR) install
#
# DESTDIR will contain:
#
# lib/libkbus.so
# install/kbus/*.h
# bin/kmsg
# kmodules/kbus.ko
#
# If no object location is specified, it's here.
O ?= $(CURDIR)
DESTDIR ?= /usr/local
SUBDIRS=kbus libkbus utils
# The MAKE all here is important - there's a distinction in the kbus
# directory because the kernel makefile objects to building kernel
# modules not in the directory of their sources. Sigh.
all:
for i in $(SUBDIRS); do \
$(MAKE) -C $$i O=$(O) all;\
done
install:
for i in $(SUBDIRS); do \
$(MAKE) -C $$i O=$(O) DESTDIR=$(DESTDIR) install; \
done
clean:
for i in $(SUBDIRS); do \
$(MAKE) -C $$i O=$(O) clean; \
done
# End File.