-rw-r--r-- | scripts/kconfig/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index b60db9f..7553311 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -65,97 +65,97 @@ lkcc_OBJ=$(filter %.o, \ | |||
65 | $(lkcc_SRC))))) | 65 | $(lkcc_SRC))))) |
66 | OBJ=$(conf_OBJ) $(mconf_OBJ) $(qconf_OBJ) $(lkcc_OBJ) | 66 | OBJ=$(conf_OBJ) $(mconf_OBJ) $(qconf_OBJ) $(lkcc_OBJ) |
67 | 67 | ||
68 | ifeq ($(MOC),) | 68 | ifeq ($(MOC),) |
69 | all: lkcc conf mconf | 69 | all: lkcc conf mconf |
70 | else | 70 | else |
71 | all: lkcc conf mconf qconf libkconfig.so | 71 | all: lkcc conf mconf qconf libkconfig.so |
72 | endif | 72 | endif |
73 | 73 | ||
74 | lex.help.c: help.l | 74 | lex.help.c: help.l |
75 | lex.help.o: lex.help.c cml1.h expr.h | 75 | lex.help.o: lex.help.c cml1.h expr.h |
76 | lex.cml1.c: cml1.l | 76 | lex.cml1.c: cml1.l |
77 | lex.cml1.o: lex.cml1.c cml1.tab.h cml1.h expr.h | 77 | lex.cml1.o: lex.cml1.c cml1.tab.h cml1.h expr.h |
78 | cml1.tab.c: cml1.y | 78 | cml1.tab.c: cml1.y |
79 | cml1.tab.h: cml1.y | 79 | cml1.tab.h: cml1.y |
80 | cml1.tab.o: cml1.tab.c cml1.h expr.h | 80 | cml1.tab.o: cml1.tab.c cml1.h expr.h |
81 | expr1.o: expr1.c expr.h | 81 | expr1.o: expr1.c expr.h |
82 | 82 | ||
83 | lkc_deps := lkc.h lkc_proto.h lkc_defs.h expr.h | 83 | lkc_deps := lkc.h lkc_proto.h lkc_defs.h expr.h |
84 | 84 | ||
85 | zconf.tab.c: zconf.y | 85 | zconf.tab.c: zconf.y |
86 | zconf.tab.h: zconf.y | 86 | zconf.tab.h: zconf.y |
87 | lex.zconf.c: zconf.l | 87 | lex.zconf.c: zconf.l |
88 | zconf.tab.o: zconf.tab.c lex.zconf.c confdata.c expr.c symbol.c menu.c $(lkc_deps) | 88 | zconf.tab.o: zconf.tab.c lex.zconf.c confdata.c expr.c symbol.c menu.c $(lkc_deps) |
89 | #lex.zconf.o: lex.zconf.c zconf.tab.h $(lkc_deps) | 89 | #lex.zconf.o: lex.zconf.c zconf.tab.h $(lkc_deps) |
90 | #confdata.o: confdata.c $(lkc_deps) | 90 | #confdata.o: confdata.c $(lkc_deps) |
91 | #expr.o: expr.c $(lkc_deps) | 91 | #expr.o: expr.c $(lkc_deps) |
92 | #symbol.o: symbol.c $(lkc_deps) | 92 | #symbol.o: symbol.c $(lkc_deps) |
93 | #menu.o: menu.c $(lkc_deps) | 93 | #menu.o: menu.c $(lkc_deps) |
94 | kconfig_load.o: kconfig_load.c $(lkc_deps) | 94 | kconfig_load.o: kconfig_load.c $(lkc_deps) |
95 | conf.o: conf.c $(lkc_deps) | 95 | conf.o: conf.c $(lkc_deps) |
96 | mconf.o: mconf.c $(lkc_deps) | 96 | mconf.o: mconf.c $(lkc_deps) |
97 | qconf.moc: qconf.h | 97 | qconf.moc: qconf.h |
98 | qconf.o: qconf.cc qconf.moc images.c $(lkc_deps) | 98 | qconf.o: qconf.cc qconf.moc images.c $(lkc_deps) |
99 | 99 | ||
100 | mconf: $(mconf_OBJ) | 100 | mconf: $(mconf_OBJ) |
101 | $(CC) $(LDFLAGS) $^ -o $@ | 101 | $(CC) $(LDFLAGS) $^ -o $@ |
102 | 102 | ||
103 | conf: $(conf_OBJ) | 103 | conf: $(conf_OBJ) |
104 | $(CC) $(LDFLAGS) $^ -o $@ | 104 | $(CC) $(LDFLAGS) $^ -o $@ |
105 | 105 | ||
106 | ifeq ($(MOC),) | 106 | ifeq ($(MOC),) |
107 | qconf: | 107 | qconf: |
108 | @echo Unable to find the QT installation. Please make sure that the | 108 | @echo Unable to find the QT installation. Please make sure that the |
109 | @echo QT development package is correctly installed and the HOSTQTDIR | 109 | @echo QT development package is correctly installed and the HOSTQTDIR |
110 | @echo environment variable is set to the correct location. | 110 | @echo environment variable is set to the correct location. |
111 | @false | 111 | @false |
112 | else | 112 | else |
113 | qconf: $(qconf_OBJ) | 113 | qconf: $(qconf_OBJ) libkconfig.so |
114 | $(CXX) $(LXXFLAGS) $^ -lqt -o $@ | 114 | $(CXX) $(LXXFLAGS) $^ -lqt -o $@ |
115 | endif | 115 | endif |
116 | 116 | ||
117 | lkcc: $(lkcc_OBJ) | 117 | lkcc: $(lkcc_OBJ) |
118 | $(CC) $(LDFLAGS) $^ -o $@ | 118 | $(CC) $(LDFLAGS) $^ -o $@ |
119 | 119 | ||
120 | libkconfig.so: $(parse_OBJ) | 120 | libkconfig.so: $(parse_OBJ) |
121 | $(CC) -shared $^ -o $@ | 121 | $(CC) -shared $^ -o $@ |
122 | 122 | ||
123 | lkc_defs.h: lkc_proto.h | 123 | lkc_defs.h: lkc_proto.h |
124 | sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' | 124 | sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' |
125 | 125 | ||
126 | clean: | 126 | clean: |
127 | rm -f $(OBJ) lkcc conf qconf mconf *.moc lex.* *.tab.? *.output | 127 | rm -f $(OBJ) lkcc conf qconf mconf *.moc lex.* *.tab.? *.output |
128 | 128 | ||
129 | tgz: | 129 | tgz: |
130 | mkdir tmp | 130 | mkdir tmp |
131 | mkdir tmp/lkc-$(VERSION) | 131 | mkdir tmp/lkc-$(VERSION) |
132 | cp -ra Makefile $(sort $(SRC) $(HDR) $(OTHER) $(INST)) tmp/lkc-$(VERSION) | 132 | cp -ra Makefile $(sort $(SRC) $(HDR) $(OTHER) $(INST)) tmp/lkc-$(VERSION) |
133 | tar -cpvz -C tmp -f lkc-$(VERSION).tar.gz lkc-$(VERSION) | 133 | tar -cpvz -C tmp -f lkc-$(VERSION).tar.gz lkc-$(VERSION) |
134 | rm -rf tmp | 134 | rm -rf tmp |
135 | 135 | ||
136 | %.tab.c %.tab.h: %.y | 136 | %.tab.c %.tab.h: %.y |
137 | $(YACC) $(YFLAGS) -b $* -p $* $< | 137 | $(YACC) $(YFLAGS) -b $* -p $* $< |
138 | 138 | ||
139 | lex.%.c: %.l | 139 | lex.%.c: %.l |
140 | $(LEX) $(LFLAGS) -P$* $< | 140 | $(LEX) $(LFLAGS) -P$* $< |
141 | 141 | ||
142 | %.moc: %.h | 142 | %.moc: %.h |
143 | $(HOSTQTDIR)/bin/moc -i $< -o $@ | 143 | $(HOSTQTDIR)/bin/moc -i $< -o $@ |
144 | 144 | ||
145 | %.o: %.c | 145 | %.o: %.c |
146 | $(CC) $(CFLAGS) -c $< -o $@ | 146 | $(CC) $(CFLAGS) -c $< -o $@ |
147 | 147 | ||
148 | %.o: %.cc | 148 | %.o: %.cc |
149 | $(CXX) $(CXXFLAGS) -c $< -o $@ | 149 | $(CXX) $(CXXFLAGS) -c $< -o $@ |
150 | 150 | ||
151 | ifdef KERNELSRC | 151 | ifdef KERNELSRC |
152 | install: lkcc $(INSTGEN) | 152 | install: lkcc $(INSTGEN) |
153 | set -x; mkdir $(KERNELSRC)/scripts/kconfig; \ | 153 | set -x; mkdir $(KERNELSRC)/scripts/kconfig; \ |
154 | cp $(sort $(INST)) $(KERNELSRC)/scripts/kconfig; \ | 154 | cp $(sort $(INST)) $(KERNELSRC)/scripts/kconfig; \ |
155 | for f in $(INSTGEN); do cp $$f $(KERNELSRC)/scripts/kconfig/$${f}_shipped; done; \ | 155 | for f in $(INSTGEN); do cp $$f $(KERNELSRC)/scripts/kconfig/$${f}_shipped; done; \ |
156 | cp Makefile.kernel $(KERNELSRC)/scripts/kconfig/Makefile; \ | 156 | cp Makefile.kernel $(KERNELSRC)/scripts/kconfig/Makefile; \ |
157 | LKCSRC=$$PWD; export LKCSRC; \ | 157 | LKCSRC=$$PWD; export LKCSRC; \ |
158 | cd $(KERNELSRC); \ | 158 | cd $(KERNELSRC); \ |
159 | patch -p0 -N < $$LKCSRC/prepare-all.diff; \ | 159 | patch -p0 -N < $$LKCSRC/prepare-all.diff; \ |
160 | sh $$LKCSRC/convert-all; \ | 160 | sh $$LKCSRC/convert-all; \ |
161 | patch -p0 -N < $$LKCSRC/fixup-all.diff | 161 | patch -p0 -N < $$LKCSRC/fixup-all.diff |