-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (56 loc) · 1.69 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
64
65
66
#
# Makefile 1.41 2003/05/16 05:59:44 (David Hinds)
#
ifeq (config.mk, $(wildcard config.mk))
include config.mk
endif
ALL = modules clients wireless cardmgr flash debug-tools man etc
DIRS = cardmgr flash debug-tools man etc
ifndef CONFIG_PCMCIA
DIRS := modules clients wireless $(DIRS)
endif
help:
@echo "Pick one of the following targets:"
@echo -e "\tmake config\t\t- configure and check system setup"
@echo -e "\tmake oldconfig\t\t- reconfigure without prompting"
@echo -e "\tmake all\t\t- build modules and programs"
@echo -e "\tmake install\t\t- install modules and programs"
@echo -e "\tmake clean\t\t- remove old binaries and dependency files"
@echo -e "\tmake realclean\t\t- start from scratch"
config .prereq.ok:
@touch config.mk
@$(MAKE) -s clean
@./Configure
oldconfig:
@touch config.mk
@$(MAKE) -s clean
@./Configure -n
all: .prereq.ok kcheck
@set -e ; for d in $(DIRS) ; do $(MAKE) -C $$d ; done
@for f in *.mk ; do \
if [ $$f != config.mk -a $$f != rules.mk ] ; then \
$(MAKE) -f $$f all ; \
fi ; done
clean:
@touch config.mk
@set -e ; for d in $(ALL) ; do $(MAKE) -C $$d clean ; done
rm -f .prereq.ok config.mk include/pcmcia/autoconf.h
rm -f include/linux/modversions.h
realclean:
rm -f config.out
@$(MAKE) clean
install: .prereq.ok kcheck
@set -e ; for d in $(DIRS) ; do $(MAKE) -C $$d install ; done
@for f in *.mk ; do \
if [ $$f != config.mk -a $$f != rules.mk ] ; then \
$(MAKE) -f $$f install ; \
fi ; done
kcheck:
@. ./config.out ; \
if [ "$$CHECK" != "" ] ; then \
if [ "`cksum < $$CHECK`" != "$$CKSUM" ] ; then \
/bin/echo -n "Kernel configuration has changed." ; \
/bin/echo " Please re-run 'make config'." ; \
exit 1 ; \
fi ; \
fi