From 76f38e36b7a875a1763d1e6ce5e00cc8dd736263 Mon Sep 17 00:00:00 2001 From: kergoth Date: Tue, 05 Nov 2002 23:26:33 +0000 Subject: Adjust makefile to check both /usr/share/qt and /usr/lib/qt for QTDIR, and to check for the existance of qt-mt and qt both --- (limited to 'scripts') diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 7553311..caad231 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -9,8 +9,28 @@ LEX=flex YACC=bison YFLAGS=-d -t -v ifndef HOSTQTDIR +ifeq ($(shell if [ -e /usr/share/qt ]; then echo foundit; fi),foundit) HOSTQTDIR=/usr/share/qt +else +ifeq ($(shell if [ -e /usr/lib/qt ]; then echo foundit; fi),foundit) +HOSTQTDIR=/usr/lib/qt +endif +endif +endif + +ifndef QTLIB +ifeq ($(shell if [ -e $(HOSTQTDIR)/lib/libqt.so ]; then echo foundit; fi),foundit) +QTLIB=-lqt +else +ifeq ($(shell if [ -e $(HOSTQTDIR)/lib/libqt-mt.so ]; then echo foundit; fi),foundit) +QTLIB=-lqt-mt +else +QTLIB=-lqt +$(warning Unable to locate libqt.so!) +endif endif +endif + MOC=$(wildcard $(HOSTQTDIR)/bin/moc) parse_SRC=zconf.y @@ -111,7 +131,7 @@ qconf: @false else qconf: $(qconf_OBJ) libkconfig.so - $(CXX) $(LXXFLAGS) $^ -lqt -o $@ + $(CXX) $(LXXFLAGS) $^ $(QTLIB) -o $@ endif lkcc: $(lkcc_OBJ) -- cgit v0.9.0.2