-rw-r--r-- | scripts/kconfig/Makefile | 14 |
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 | |||
@@ -2,16 +2,16 @@ VERSION=1.2 | |||
2 | CC=gcc | 2 | CC=gcc |
3 | CXX=g++ | 3 | CXX=g++ |
4 | CFLAGS=-O2 -Wall -g -fPIC | 4 | CFLAGS=-O2 -Wall -g -fPIC |
5 | CXXFLAGS=$(CFLAGS) -I$(QTDIR)/include | 5 | CXXFLAGS=$(CFLAGS) -I$(HOSTQTDIR)/include |
6 | LDFLAGS= | 6 | LDFLAGS= |
7 | LXXFLAGS=$(LDFLAGS) -L$(QTDIR)/lib -Wl,-rpath,$(QTDIR)/lib | 7 | LXXFLAGS=$(LDFLAGS) -L$(HOSTQTDIR)/lib -Wl,-rpath,$(HOSTQTDIR)/lib |
8 | LEX=flex | 8 | LEX=flex |
9 | YACC=bison | 9 | YACC=bison |
10 | YFLAGS=-d -t -v | 10 | YFLAGS=-d -t -v |
11 | ifndef QTDIR | 11 | ifndef HOSTQTDIR |
12 | QTDIR=/usr/share/qt | 12 | HOSTQTDIR=/usr/share/qt |
13 | endif | 13 | endif |
14 | MOC=$(wildcard $(QTDIR)/bin/moc) | 14 | MOC=$(wildcard $(HOSTQTDIR)/bin/moc) |
15 | 15 | ||
16 | parse_SRC=zconf.y | 16 | parse_SRC=zconf.y |
17 | conf_SRC=conf.c $(parse_SRC) | 17 | conf_SRC=conf.c $(parse_SRC) |
@@ -106,7 +106,7 @@ conf: $(conf_OBJ) | |||
106 | ifeq ($(MOC),) | 106 | ifeq ($(MOC),) |
107 | qconf: | 107 | qconf: |
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 |
112 | else | 112 | else |
@@ -140,7 +140,7 @@ lex.%.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 $@ |