summaryrefslogtreecommitdiff
authorkergoth <kergoth>2002-11-05 20:40:00 (UTC)
committer kergoth <kergoth>2002-11-05 20:40:00 (UTC)
commit45e2855a515926495e28612747d4311959042751 (patch) (side-by-side diff)
tree2bddf4a6710f8d47cbc621b1ea16c18e0ad35e73
parent8e8ffc20d1699ba678d380f25e08424492f7d8ab (diff)
downloadopie-45e2855a515926495e28612747d4311959042751.zip
opie-45e2855a515926495e28612747d4311959042751.tar.gz
opie-45e2855a515926495e28612747d4311959042751.tar.bz2
Dont obey qtdir, obey hostqtdir. set it if necessary
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--scripts/kconfig/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index ed57c6f..b60db9f 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -1,30 +1,30 @@
VERSION=1.2
CC=gcc
CXX=g++
CFLAGS=-O2 -Wall -g -fPIC
-CXXFLAGS=$(CFLAGS) -I$(QTDIR)/include
+CXXFLAGS=$(CFLAGS) -I$(HOSTQTDIR)/include
LDFLAGS=
-LXXFLAGS=$(LDFLAGS) -L$(QTDIR)/lib -Wl,-rpath,$(QTDIR)/lib
+LXXFLAGS=$(LDFLAGS) -L$(HOSTQTDIR)/lib -Wl,-rpath,$(HOSTQTDIR)/lib
LEX=flex
YACC=bison
YFLAGS=-d -t -v
-ifndef QTDIR
-QTDIR=/usr/share/qt
+ifndef HOSTQTDIR
+HOSTQTDIR=/usr/share/qt
endif
-MOC=$(wildcard $(QTDIR)/bin/moc)
+MOC=$(wildcard $(HOSTQTDIR)/bin/moc)
parse_SRC=zconf.y
conf_SRC=conf.c $(parse_SRC)
mconf_SRC=mconf.c $(parse_SRC)
qconf_SRC=qconf.cc
lkcc_SRC=cml1.y cml1.l help.l cml1.h expr1.c
HDR=expr.h lkc.h lkc_proto.h qconf.h
OTHER=README lkc_spec lkc_overview Makefile.kernel convert-all prepare-all.diff fixup-all.diff \
kconfig.i extconf.rb example
INST=zconf.y zconf.l confdata.c expr.c symbol.c menu.c conf.c mconf.c qconf.cc kconfig_load.c images.c $(parse_SRC) $(HDR)
INSTGEN=lex.zconf.c zconf.tab.c zconf.tab.h
#DEBUG=1
ifdef DEBUG
CFLAGS+=-DLKC_DIRECT_LINK
qconf_SRC+=$(parse_SRC)
@@ -93,33 +93,33 @@ zconf.tab.o: zconf.tab.c lex.zconf.c confdata.c expr.c symbol.c menu.c $(lkc_dep
#menu.o: menu.c $(lkc_deps)
kconfig_load.o: kconfig_load.c $(lkc_deps)
conf.o: conf.c $(lkc_deps)
mconf.o: mconf.c $(lkc_deps)
qconf.moc: qconf.h
qconf.o: qconf.cc qconf.moc images.c $(lkc_deps)
mconf: $(mconf_OBJ)
$(CC) $(LDFLAGS) $^ -o $@
conf: $(conf_OBJ)
$(CC) $(LDFLAGS) $^ -o $@
ifeq ($(MOC),)
qconf:
@echo Unable to find the QT installation. Please make sure that the
- @echo QT development package is correctly installed and the QTDIR
+ @echo QT development package is correctly installed and the HOSTQTDIR
@echo environment variable is set to the correct location.
@false
else
qconf: $(qconf_OBJ)
$(CXX) $(LXXFLAGS) $^ -lqt -o $@
endif
lkcc: $(lkcc_OBJ)
$(CC) $(LDFLAGS) $^ -o $@
libkconfig.so: $(parse_OBJ)
$(CC) -shared $^ -o $@
lkc_defs.h: lkc_proto.h
sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
@@ -127,33 +127,33 @@ clean:
rm -f $(OBJ) lkcc conf qconf mconf *.moc lex.* *.tab.? *.output
tgz:
mkdir tmp
mkdir tmp/lkc-$(VERSION)
cp -ra Makefile $(sort $(SRC) $(HDR) $(OTHER) $(INST)) tmp/lkc-$(VERSION)
tar -cpvz -C tmp -f lkc-$(VERSION).tar.gz lkc-$(VERSION)
rm -rf tmp
%.tab.c %.tab.h: %.y
$(YACC) $(YFLAGS) -b $* -p $* $<
lex.%.c: %.l
$(LEX) $(LFLAGS) -P$* $<
%.moc: %.h
- $(QTDIR)/bin/moc -i $< -o $@
+ $(HOSTQTDIR)/bin/moc -i $< -o $@
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
%.o: %.cc
$(CXX) $(CXXFLAGS) -c $< -o $@
ifdef KERNELSRC
install: lkcc $(INSTGEN)
set -x; mkdir $(KERNELSRC)/scripts/kconfig; \
cp $(sort $(INST)) $(KERNELSRC)/scripts/kconfig; \
for f in $(INSTGEN); do cp $$f $(KERNELSRC)/scripts/kconfig/$${f}_shipped; done; \
cp Makefile.kernel $(KERNELSRC)/scripts/kconfig/Makefile; \
LKCSRC=$$PWD; export LKCSRC; \
cd $(KERNELSRC); \
patch -p0 -N < $$LKCSRC/prepare-all.diff; \