summaryrefslogtreecommitdiff
authorkergoth <kergoth>2002-11-05 23:27:42 (UTC)
committer kergoth <kergoth>2002-11-05 23:27:42 (UTC)
commitcc85b20f907834b72222b15189698b4c48b53ee6 (patch) (unidiff)
treebb51e9083cef979cedba86dd2c6b33a2eb50792c
parent76f38e36b7a875a1763d1e6ce5e00cc8dd736263 (diff)
downloadopie-cc85b20f907834b72222b15189698b4c48b53ee6.zip
opie-cc85b20f907834b72222b15189698b4c48b53ee6.tar.gz
opie-cc85b20f907834b72222b15189698b4c48b53ee6.tar.bz2
prefer qt-mt, fallback to qt
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--scripts/kconfig/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index caad231..6782d4a 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -1,54 +1,52 @@
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$(HOSTQTDIR)/include 5CXXFLAGS=$(CFLAGS) -I$(HOSTQTDIR)/include
6LDFLAGS= 6LDFLAGS=
7LXXFLAGS=$(LDFLAGS) -L$(HOSTQTDIR)/lib -Wl,-rpath,$(HOSTQTDIR)/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 HOSTQTDIR 11ifndef HOSTQTDIR
12ifeq ($(shell if [ -e /usr/share/qt ]; then echo foundit; fi),foundit) 12ifeq ($(shell if [ -e /usr/share/qt ]; then echo foundit; fi),foundit)
13HOSTQTDIR=/usr/share/qt 13HOSTQTDIR=/usr/share/qt
14else 14else
15ifeq ($(shell if [ -e /usr/lib/qt ]; then echo foundit; fi),foundit) 15ifeq ($(shell if [ -e /usr/lib/qt ]; then echo foundit; fi),foundit)
16HOSTQTDIR=/usr/lib/qt 16HOSTQTDIR=/usr/lib/qt
17endif 17endif
18endif 18endif
19endif 19endif
20 20
21ifndef QTLIB 21ifndef QTLIB
22ifeq ($(shell if [ -e $(HOSTQTDIR)/lib/libqt.so ]; then echo foundit; fi),foundit)
23QTLIB=-lqt
24else
25ifeq ($(shell if [ -e $(HOSTQTDIR)/lib/libqt-mt.so ]; then echo foundit; fi),foundit) 22ifeq ($(shell if [ -e $(HOSTQTDIR)/lib/libqt-mt.so ]; then echo foundit; fi),foundit)
26QTLIB=-lqt-mt 23QTLIB=-lqt-mt
27else 24else
28QTLIB=-lqt 25ifneq ($(shell if [ -e $(HOSTQTDIR)/lib/libqt.so ]; then echo foundit; fi),foundit)
29$(warning Unable to locate libqt.so!) 26$(warning Unable to locate libqt.so!)
30endif 27endif
28QTLIB=-lqt
31endif 29endif
32endif 30endif
33 31
34MOC=$(wildcard $(HOSTQTDIR)/bin/moc) 32MOC=$(wildcard $(HOSTQTDIR)/bin/moc)
35 33
36parse_SRC=zconf.y 34parse_SRC=zconf.y
37conf_SRC=conf.c $(parse_SRC) 35conf_SRC=conf.c $(parse_SRC)
38mconf_SRC=mconf.c $(parse_SRC) 36mconf_SRC=mconf.c $(parse_SRC)
39qconf_SRC=qconf.cc 37qconf_SRC=qconf.cc
40lkcc_SRC=cml1.y cml1.l help.l cml1.h expr1.c 38lkcc_SRC=cml1.y cml1.l help.l cml1.h expr1.c
41HDR=expr.h lkc.h lkc_proto.h qconf.h 39HDR=expr.h lkc.h lkc_proto.h qconf.h
42OTHER=README lkc_spec lkc_overview Makefile.kernel convert-all prepare-all.diff fixup-all.diff \ 40OTHER=README lkc_spec lkc_overview Makefile.kernel convert-all prepare-all.diff fixup-all.diff \
43 kconfig.i extconf.rb example 41 kconfig.i extconf.rb example
44INST=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) 42INST=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)
45INSTGEN=lex.zconf.c zconf.tab.c zconf.tab.h 43INSTGEN=lex.zconf.c zconf.tab.c zconf.tab.h
46 44
47#DEBUG=1 45#DEBUG=1
48ifdef DEBUG 46ifdef DEBUG
49CFLAGS+=-DLKC_DIRECT_LINK 47CFLAGS+=-DLKC_DIRECT_LINK
50qconf_SRC+=$(parse_SRC) 48qconf_SRC+=$(parse_SRC)
51else 49else
52qconf_SRC+=kconfig_load.c 50qconf_SRC+=kconfig_load.c
53endif 51endif
54 52