OSDN Git Service

Add MS7619SE
[uclinux-h8/uClinux-dist.git] / config / Makefile
1
2 all:
3
4 include Makefile.conf
5
6 oldconfig: conf autoconf
7         $(SCRIPTSDIR)/conf -o Kconfig
8
9 config: conf autoconf
10         $(SCRIPTSDIR)/conf Kconfig
11
12 menuconfig: mconf autoconf
13         $(SCRIPTSDIR)/mconf Kconfig
14
15 gconfig: gconf autoconf
16         $(SCRIPTSDIR)/gconf Kconfig
17
18 qconfig: qconf autoconf
19         $(SCRIPTSDIR)/qconf Kconfig
20
21 xconfig: gconfig autoconf
22
23 .PHONY: automake force autoclean
24 autoconf: ../vendors/Kconfig ../lib/Kconfig.auto ../user/Kconfig.auto   automake
25 automake: ../lib/Makefile.auto ../user/Makefile.auto  
26 force:
27
28 #
29 # build the auto config Kconfig.auto files and their Makefile.auto components
30 # also include any vendor Kconfig files if they exist.
31 #
32 ../vendors/Kconfig ../lib/Kconfig.auto ../user/Kconfig.auto  : force
33
34 ../vendors/Kconfig: Makefile
35         @echo "# autogenerated, do not EDIT" > $@; \
36         . ../.config; \
37         for i in $$CONFIG_VENDOR/$$CONFIG_PRODUCT/. $$CONFIG_VENDOR/.; do \
38                 [ -f ../vendors/$$i/Kconfig ] || continue; \
39                 echo "source ../vendors/$$i/Kconfig" >> $@; \
40                 echo "autoconf: vendors/$$i/Kconfig"; \
41         done
42
43 ../lib/Kconfig.auto ../user/Kconfig.auto ../lib/Makefile.auto ../user/Makefile.auto  : Makefile
44         @cd `dirname $@`; \
45         P=`dirname $(@)`; \
46         T=`basename $$P | tr '[a-z]' '[A-Z]'`; \
47         echo "# autogenerated, do not EDIT" > Kconfig.auto; \
48         echo "# autogenerated, do not EDIT" > Makefile.auto; \
49         fgrep -l automake.inc */[mM]akefile 2> /dev/null | while read t; do \
50                 D=`dirname $$t`; \
51                 M=`echo $$D | tr '[a-z]' '[A-Z]' | sed 's/[-+]/_/g'`; \
52                 if [ -f $$D/Kconfig ]; then \
53                         echo "automake: $$D (custom Kconfig)"; \
54                         echo "source  $$P/$$D/Kconfig" >> Kconfig.auto; \
55                 else \
56                         echo "automake: $$D (default Kconfig)"; \
57                         ( \
58                         echo "config $${T}_$${M}"; \
59                     echo "bool \"$$D\""; \
60                         echo "help"; \
61                         echo "    Automake package for $$D."; \
62                         echo "    see $(ROOTDIR)/Documentation/automake.txt for details"; \
63                         echo "    on improving this help."; \
64                         ) >> Kconfig.auto; \
65                 fi; \
66                 echo "dir_$$""(CONFIG_$${T}_$${M})      += $$D" >> Makefile.auto; \
67                 if [ -f $$D/Makefile.auto ]; then \
68                         echo "include $$D/Makefile.auto" >> Makefile.auto; \
69                 fi; \
70         done
71
72 autoclean:
73         rm -f ../lib/Kconfig.auto ../user/Kconfig.auto
74         rm -f ../lib/Makefile.auto ../user/Makefile.auto
75         rm -f  
76         rm -f ../vendors/Kconfig
77
78 clean: confclean autoclean
79         rm -f autoconf.h auto.conf .config .config.old
80
81 .PHONY: all oldconfig config menuconfig gconfig qconfig xconfig clean