summaryrefslogtreecommitdiff
authorkergoth <kergoth>2002-11-05 20:40:00 (UTC)
committer kergoth <kergoth>2002-11-05 20:40:00 (UTC)
commit45e2855a515926495e28612747d4311959042751 (patch) (unidiff)
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,18 +1,18 @@
1VERSION=1.2 1VERSION=1.2
2CC=gcc 2CC=gcc
3CXX=g++ 3CXX=g++
4CFLAGS=-O2 -Wall -g -fPIC 4CFLAGS=-O2 -Wall -g -fPIC
5CXXFLAGS=$(CFLAGS) -I$(QTDIR)/include 5CXXFLAGS=$(CFLAGS) -I$(HOSTQTDIR)/include
6LDFLAGS= 6LDFLAGS=
7LXXFLAGS=$(LDFLAGS) -L$(QTDIR)/lib -Wl,-rpath,$(QTDIR)/lib 7LXXFLAGS=$(LDFLAGS) -L$(HOSTQTDIR)/lib -Wl,-rpath,$(HOSTQTDIR)/lib
8LEX=flex 8LEX=flex
9YACC=bison 9YACC=bison
10YFLAGS=-d -t -v 10YFLAGS=-d -t -v
11ifndef QTDIR 11ifndef HOSTQTDIR
12QTDIR=/usr/share/qt 12HOSTQTDIR=/usr/share/qt
13endif 13endif
14MOC=$(wildcard $(QTDIR)/bin/moc) 14MOC=$(wildcard $(HOSTQTDIR)/bin/moc)
15 15
16parse_SRC=zconf.y 16parse_SRC=zconf.y
17conf_SRC=conf.c $(parse_SRC) 17conf_SRC=conf.c $(parse_SRC)
18mconf_SRC=mconf.c $(parse_SRC) 18mconf_SRC=mconf.c $(parse_SRC)
@@ -105,9 +105,9 @@ conf: $(conf_OBJ)
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 QTDIR 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)
@@ -139,9 +139,9 @@ tgz:
139lex.%.c: %.l 139lex.%.c: %.l
140 $(LEX) $(LFLAGS) -P$* $< 140 $(LEX) $(LFLAGS) -P$* $<
141 141
142%.moc: %.h 142%.moc: %.h
143 $(QTDIR)/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