summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--scripts/kconfig/Makefile2
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)))))
66OBJ=$(conf_OBJ) $(mconf_OBJ) $(qconf_OBJ) $(lkcc_OBJ) 66OBJ=$(conf_OBJ) $(mconf_OBJ) $(qconf_OBJ) $(lkcc_OBJ)
67 67
68ifeq ($(MOC),) 68ifeq ($(MOC),)
69all: lkcc conf mconf 69all: lkcc conf mconf
70else 70else
71all: lkcc conf mconf qconf libkconfig.so 71all: lkcc conf mconf qconf libkconfig.so
72endif 72endif
73 73
74lex.help.c: help.l 74lex.help.c: help.l
75lex.help.o: lex.help.c cml1.h expr.h 75lex.help.o: lex.help.c cml1.h expr.h
76lex.cml1.c: cml1.l 76lex.cml1.c: cml1.l
77lex.cml1.o: lex.cml1.c cml1.tab.h cml1.h expr.h 77lex.cml1.o: lex.cml1.c cml1.tab.h cml1.h expr.h
78cml1.tab.c: cml1.y 78cml1.tab.c: cml1.y
79cml1.tab.h: cml1.y 79cml1.tab.h: cml1.y
80cml1.tab.o: cml1.tab.c cml1.h expr.h 80cml1.tab.o: cml1.tab.c cml1.h expr.h
81expr1.o: expr1.c expr.h 81expr1.o: expr1.c expr.h
82 82
83lkc_deps := lkc.h lkc_proto.h lkc_defs.h expr.h 83lkc_deps := lkc.h lkc_proto.h lkc_defs.h expr.h
84 84
85zconf.tab.c: zconf.y 85zconf.tab.c: zconf.y
86zconf.tab.h: zconf.y 86zconf.tab.h: zconf.y
87lex.zconf.c: zconf.l 87lex.zconf.c: zconf.l
88zconf.tab.o: zconf.tab.c lex.zconf.c confdata.c expr.c symbol.c menu.c $(lkc_deps) 88zconf.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)
94kconfig_load.o: kconfig_load.c $(lkc_deps) 94kconfig_load.o: kconfig_load.c $(lkc_deps)
95conf.o: conf.c $(lkc_deps) 95conf.o: conf.c $(lkc_deps)
96mconf.o: mconf.c $(lkc_deps) 96mconf.o: mconf.c $(lkc_deps)
97qconf.moc: qconf.h 97qconf.moc: qconf.h
98qconf.o: qconf.cc qconf.moc images.c $(lkc_deps) 98qconf.o: qconf.cc qconf.moc images.c $(lkc_deps)
99 99
100mconf: $(mconf_OBJ) 100mconf: $(mconf_OBJ)
101 $(CC) $(LDFLAGS) $^ -o $@ 101 $(CC) $(LDFLAGS) $^ -o $@
102 102
103conf: $(conf_OBJ) 103conf: $(conf_OBJ)
104 $(CC) $(LDFLAGS) $^ -o $@ 104 $(CC) $(LDFLAGS) $^ -o $@
105 105
106ifeq ($(MOC),) 106ifeq ($(MOC),)
107qconf: 107qconf:
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
112else 112else
113qconf: $(qconf_OBJ) 113qconf: $(qconf_OBJ) libkconfig.so
114 $(CXX) $(LXXFLAGS) $^ -lqt -o $@ 114 $(CXX) $(LXXFLAGS) $^ -lqt -o $@
115endif 115endif
116 116
117lkcc: $(lkcc_OBJ) 117lkcc: $(lkcc_OBJ)
118 $(CC) $(LDFLAGS) $^ -o $@ 118 $(CC) $(LDFLAGS) $^ -o $@
119 119
120libkconfig.so: $(parse_OBJ) 120libkconfig.so: $(parse_OBJ)
121 $(CC) -shared $^ -o $@ 121 $(CC) -shared $^ -o $@
122 122
123lkc_defs.h: lkc_proto.h 123lkc_defs.h: lkc_proto.h
124 sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' 124 sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
125 125
126clean: 126clean:
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
129tgz: 129tgz:
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
139lex.%.c: %.l 139lex.%.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
151ifdef KERNELSRC 151ifdef KERNELSRC
152install: lkcc $(INSTGEN) 152install: 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