-rw-r--r-- | scripts/kconfig/Makefile | 4 | ||||
-rw-r--r-- | scripts/lxdialog/Makefile | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 6006a80..492eb0a 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -1,195 +1,195 @@ | |||
1 | VERSION=1.4 | 1 | VERSION=1.4 |
2 | CC=gcc | 2 | CC=$(CCACHE) gcc |
3 | CXX=g++ | 3 | CXX=$(CCACHE) g++ |
4 | CFLAGS=-O0 -Wall -g -fPIC | 4 | CFLAGS=-O0 -Wall -g -fPIC |
5 | CXXFLAGS=$(CFLAGS) -I$(QTDIR)/include | 5 | CXXFLAGS=$(CFLAGS) -I$(QTDIR)/include |
6 | LDFLAGS= | 6 | LDFLAGS= |
7 | LXXFLAGS=$(LDFLAGS) -L$(QTDIR)/lib -Wl,-rpath,$(QTDIR)/lib | 7 | LXXFLAGS=$(LDFLAGS) -L$(QTDIR)/lib -Wl,-rpath,$(QTDIR)/lib |
8 | LEX=flex | 8 | LEX=flex |
9 | LFLAGS=-L | 9 | LFLAGS=-L |
10 | YACC=bison | 10 | YACC=bison |
11 | YFLAGS=-l | 11 | YFLAGS=-l |
12 | #YFLAGS=-t -v -l | 12 | #YFLAGS=-t -v -l |
13 | ifndef QTDIR | 13 | ifndef QTDIR |
14 | QTDIR=/usr/share/qt3 | 14 | QTDIR=/usr/share/qt3 |
15 | endif | 15 | endif |
16 | MOC=$(wildcard $(QTDIR)/bin/moc) | 16 | MOC=$(wildcard $(QTDIR)/bin/moc) |
17 | GTKCFLAGS=`pkg-config gtk+-2.0 gmodule-2.0 libglade-2.0 --cflags` | 17 | GTKCFLAGS=`pkg-config gtk+-2.0 gmodule-2.0 libglade-2.0 --cflags` |
18 | GTKLDFLAGS=`pkg-config gtk+-2.0 gmodule-2.0 libglade-2.0 --libs` | 18 | GTKLDFLAGS=`pkg-config gtk+-2.0 gmodule-2.0 libglade-2.0 --libs` |
19 | 19 | ||
20 | parse_SRC=zconf.y | 20 | parse_SRC=zconf.y |
21 | conf_SRC=conf.c $(parse_SRC) | 21 | conf_SRC=conf.c $(parse_SRC) |
22 | mconf_SRC=mconf.c $(parse_SRC) | 22 | mconf_SRC=mconf.c $(parse_SRC) |
23 | qconf_SRC=qconf.cc | 23 | qconf_SRC=qconf.cc |
24 | gconf_SRC=gconf.c kconfig_load.c | 24 | gconf_SRC=gconf.c kconfig_load.c |
25 | HDR=expr.h lkc.h lkc_proto.h qconf.h | 25 | HDR=expr.h lkc.h lkc_proto.h qconf.h |
26 | OTHER=README lkc-language.txt Makefile.kernel \ | 26 | OTHER=README lkc-language.txt Makefile.kernel \ |
27 | kconfig.i extconf.rb example | 27 | kconfig.i extconf.rb example |
28 | INST=zconf.y zconf.l confdata.c expr.c symbol.c menu.c \ | 28 | INST=zconf.y zconf.l confdata.c expr.c symbol.c menu.c \ |
29 | conf.c mconf.c qconf.cc gconf.c gconf.glade kconfig_load.c images.c $(HDR) | 29 | conf.c mconf.c qconf.cc gconf.c gconf.glade kconfig_load.c images.c $(HDR) |
30 | INSTGEN=lex.zconf.c zconf.tab.c | 30 | INSTGEN=lex.zconf.c zconf.tab.c |
31 | 31 | ||
32 | #DEBUG=1 | 32 | #DEBUG=1 |
33 | ifdef DEBUG | 33 | ifdef DEBUG |
34 | CFLAGS+=-DLKC_DIRECT_LINK | 34 | CFLAGS+=-DLKC_DIRECT_LINK |
35 | qconf_SRC+=$(parse_SRC) | 35 | qconf_SRC+=$(parse_SRC) |
36 | else | 36 | else |
37 | qconf_SRC+=kconfig_load.c | 37 | qconf_SRC+=kconfig_load.c |
38 | endif | 38 | endif |
39 | 39 | ||
40 | SRC=$(conf_SRC) $(mconf_SRC) $(qconf_SRC) | 40 | SRC=$(conf_SRC) $(mconf_SRC) $(qconf_SRC) |
41 | CSRC=$(filter %.c, $(SRC)) | 41 | CSRC=$(filter %.c, $(SRC)) |
42 | YSRC=$(filter %.y, $(SRC)) | 42 | YSRC=$(filter %.y, $(SRC)) |
43 | LSRC=$(filter %.l, $(SRC)) | 43 | LSRC=$(filter %.l, $(SRC)) |
44 | 44 | ||
45 | parse_OBJ=$(filter %.o, \ | 45 | parse_OBJ=$(filter %.o, \ |
46 | $(patsubst %.c,%.o, \ | 46 | $(patsubst %.c,%.o, \ |
47 | $(patsubst %.y,%.tab.o, \ | 47 | $(patsubst %.y,%.tab.o, \ |
48 | $(patsubst %.l,lex.%.o, \ | 48 | $(patsubst %.l,lex.%.o, \ |
49 | $(parse_SRC))))) | 49 | $(parse_SRC))))) |
50 | conf_OBJ=$(filter %.o, \ | 50 | conf_OBJ=$(filter %.o, \ |
51 | $(patsubst %.c,%.o, \ | 51 | $(patsubst %.c,%.o, \ |
52 | $(patsubst %.y,%.tab.o, \ | 52 | $(patsubst %.y,%.tab.o, \ |
53 | $(patsubst %.l,lex.%.o, \ | 53 | $(patsubst %.l,lex.%.o, \ |
54 | $(conf_SRC))))) | 54 | $(conf_SRC))))) |
55 | mconf_OBJ=$(filter %.o, \ | 55 | mconf_OBJ=$(filter %.o, \ |
56 | $(patsubst %.c,%.o, \ | 56 | $(patsubst %.c,%.o, \ |
57 | $(patsubst %.y,%.tab.o, \ | 57 | $(patsubst %.y,%.tab.o, \ |
58 | $(patsubst %.l,lex.%.o, \ | 58 | $(patsubst %.l,lex.%.o, \ |
59 | $(mconf_SRC))))) | 59 | $(mconf_SRC))))) |
60 | qconf_OBJ=$(filter %.o, \ | 60 | qconf_OBJ=$(filter %.o, \ |
61 | $(patsubst %.c,%.o, \ | 61 | $(patsubst %.c,%.o, \ |
62 | $(patsubst %.cc,%.o, \ | 62 | $(patsubst %.cc,%.o, \ |
63 | $(patsubst %.y,%.tab.o, \ | 63 | $(patsubst %.y,%.tab.o, \ |
64 | $(patsubst %.l,lex.%.o, \ | 64 | $(patsubst %.l,lex.%.o, \ |
65 | $(qconf_SRC)))))) | 65 | $(qconf_SRC)))))) |
66 | gconf_OBJ=$(filter %.o, \ | 66 | gconf_OBJ=$(filter %.o, \ |
67 | $(patsubst %.c,%.o, \ | 67 | $(patsubst %.c,%.o, \ |
68 | $(patsubst %.y,%.tab.o, \ | 68 | $(patsubst %.y,%.tab.o, \ |
69 | $(patsubst %.l,lex.%.o, \ | 69 | $(patsubst %.l,lex.%.o, \ |
70 | $(gconf_SRC))))) | 70 | $(gconf_SRC))))) |
71 | OBJ=$(conf_OBJ) $(mconf_OBJ) $(qconf_OBJ) | 71 | OBJ=$(conf_OBJ) $(mconf_OBJ) $(qconf_OBJ) |
72 | 72 | ||
73 | ifeq ($(MOC),) | 73 | ifeq ($(MOC),) |
74 | all: conf mconf | 74 | all: conf mconf |
75 | else | 75 | else |
76 | all: conf mconf qconf libkconfig.so | 76 | all: conf mconf qconf libkconfig.so |
77 | endif | 77 | endif |
78 | 78 | ||
79 | lkc_deps := lkc.h lkc_proto.h lkc_defs.h expr.h | 79 | lkc_deps := lkc.h lkc_proto.h lkc_defs.h expr.h |
80 | 80 | ||
81 | zconf.tab.c: zconf.y | 81 | zconf.tab.c: zconf.y |
82 | zconf.tab.h: zconf.y | 82 | zconf.tab.h: zconf.y |
83 | lex.zconf.c: zconf.l | 83 | lex.zconf.c: zconf.l |
84 | zconf.tab.o: zconf.tab.c lex.zconf.c confdata.c expr.c symbol.c menu.c $(lkc_deps) | 84 | zconf.tab.o: zconf.tab.c lex.zconf.c confdata.c expr.c symbol.c menu.c $(lkc_deps) |
85 | #lex.zconf.o: lex.zconf.c zconf.tab.h $(lkc_deps) | 85 | #lex.zconf.o: lex.zconf.c zconf.tab.h $(lkc_deps) |
86 | #confdata.o: confdata.c $(lkc_deps) | 86 | #confdata.o: confdata.c $(lkc_deps) |
87 | #expr.o: expr.c $(lkc_deps) | 87 | #expr.o: expr.c $(lkc_deps) |
88 | #symbol.o: symbol.c $(lkc_deps) | 88 | #symbol.o: symbol.c $(lkc_deps) |
89 | #menu.o: menu.c $(lkc_deps) | 89 | #menu.o: menu.c $(lkc_deps) |
90 | kconfig_load.o: kconfig_load.c $(lkc_deps) | 90 | kconfig_load.o: kconfig_load.c $(lkc_deps) |
91 | conf.o: conf.c $(lkc_deps) | 91 | conf.o: conf.c $(lkc_deps) |
92 | mconf.o: mconf.c $(lkc_deps) | 92 | mconf.o: mconf.c $(lkc_deps) |
93 | qconf.moc: qconf.h | 93 | qconf.moc: qconf.h |
94 | qconf.o: qconf.cc qconf.moc images.c $(lkc_deps) | 94 | qconf.o: qconf.cc qconf.moc images.c $(lkc_deps) |
95 | gconf.o: gconf.c $(lkc_deps) | 95 | gconf.o: gconf.c $(lkc_deps) |
96 | 96 | ||
97 | mconf: $(mconf_OBJ) | 97 | mconf: $(mconf_OBJ) |
98 | $(CC) $(LDFLAGS) $^ -o $@ | 98 | $(CC) $(LDFLAGS) $^ -o $@ |
99 | 99 | ||
100 | conf: $(conf_OBJ) | 100 | conf: $(conf_OBJ) |
101 | $(CC) $(LDFLAGS) $^ -o $@ | 101 | $(CC) $(LDFLAGS) $^ -o $@ |
102 | 102 | ||
103 | ifeq ($(MOC),) | 103 | ifeq ($(MOC),) |
104 | qconf: | 104 | qconf: |
105 | @echo Unable to find the QT installation. Please make sure that the | 105 | @echo Unable to find the QT installation. Please make sure that the |
106 | @echo QT development package is correctly installed and the QTDIR | 106 | @echo QT development package is correctly installed and the QTDIR |
107 | @echo environment variable is set to the correct location. | 107 | @echo environment variable is set to the correct location. |
108 | @false | 108 | @false |
109 | else | 109 | else |
110 | qconf: $(qconf_OBJ) | 110 | qconf: $(qconf_OBJ) |
111 | $(CXX) $(LXXFLAGS) $^ -lqt-mt -o $@ | 111 | $(CXX) $(LXXFLAGS) $^ -lqt-mt -o $@ |
112 | endif | 112 | endif |
113 | 113 | ||
114 | gconf.o: gconf.c | 114 | gconf.o: gconf.c |
115 | $(CC) $(CFLAGS) $(GTKCFLAGS) -c $< -o $@ | 115 | $(CC) $(CFLAGS) $(GTKCFLAGS) -c $< -o $@ |
116 | 116 | ||
117 | gconf: $(gconf_OBJ) | 117 | gconf: $(gconf_OBJ) |
118 | $(CC) $(LDFLAGS) $(GTKLDFLAGS) $^ -o $@ | 118 | $(CC) $(LDFLAGS) $(GTKLDFLAGS) $^ -o $@ |
119 | 119 | ||
120 | libkconfig.so: $(parse_OBJ) | 120 | libkconfig.so: $(parse_OBJ) |
121 | $(CC) -shared $^ -o $@ | 121 | $(CC) -shared $^ -o $@ |
122 | 122 | ||
123 | lkc_defs.h: lkc_proto.h | 123 | lkc_defs.h: lkc_proto.h |
124 | sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' | 124 | sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' |
125 | 125 | ||
126 | clean: | 126 | clean: |
127 | rm -f $(OBJ) conf qconf mconf *.moc lex.* *.tab.? *.output | 127 | rm -f $(OBJ) conf qconf mconf *.moc lex.* *.tab.? *.output |
128 | rm -rf .ruby .python | 128 | rm -rf .ruby .python |
129 | 129 | ||
130 | tgz: | 130 | tgz: |
131 | mkdir tmp | 131 | mkdir tmp |
132 | mkdir tmp/lkc-$(VERSION) | 132 | mkdir tmp/lkc-$(VERSION) |
133 | cp -ra Makefile $(sort $(SRC) $(HDR) $(OTHER) $(INST)) tmp/lkc-$(VERSION) | 133 | cp -ra Makefile $(sort $(SRC) $(HDR) $(OTHER) $(INST)) tmp/lkc-$(VERSION) |
134 | tar -cpvz -C tmp --exclude CVS -f lkc-$(VERSION).tar.gz lkc-$(VERSION) | 134 | tar -cpvz -C tmp --exclude CVS -f lkc-$(VERSION).tar.gz lkc-$(VERSION) |
135 | rm -rf tmp | 135 | rm -rf tmp |
136 | 136 | ||
137 | %.tab.c %.tab.h: %.y | 137 | %.tab.c %.tab.h: %.y |
138 | $(YACC) $(YFLAGS) -b $* -p $* $< | 138 | $(YACC) $(YFLAGS) -b $* -p $* $< |
139 | 139 | ||
140 | lex.%.c: %.l | 140 | lex.%.c: %.l |
141 | $(LEX) $(LFLAGS) -P$* $< | 141 | $(LEX) $(LFLAGS) -P$* $< |
142 | 142 | ||
143 | %.moc: %.h | 143 | %.moc: %.h |
144 | $(QTDIR)/bin/moc -i $< -o $@ | 144 | $(QTDIR)/bin/moc -i $< -o $@ |
145 | 145 | ||
146 | %.o: %.c | 146 | %.o: %.c |
147 | $(CC) $(CFLAGS) -c $< -o $@ | 147 | $(CC) $(CFLAGS) -c $< -o $@ |
148 | 148 | ||
149 | %.o: %.cc | 149 | %.o: %.cc |
150 | $(CXX) $(CXXFLAGS) -c $< -o $@ | 150 | $(CXX) $(CXXFLAGS) -c $< -o $@ |
151 | 151 | ||
152 | ifdef KERNELSRC | 152 | ifdef KERNELSRC |
153 | install: $(INSTGEN) | 153 | install: $(INSTGEN) |
154 | set -x; cp --remove-destination $(sort $(INST)) $(KERNELSRC)/scripts/kconfig; \ | 154 | set -x; cp --remove-destination $(sort $(INST)) $(KERNELSRC)/scripts/kconfig; \ |
155 | for f in $(INSTGEN); do cp --remove-destination $$f $(KERNELSRC)/scripts/kconfig/$${f}_shipped; done; \ | 155 | for f in $(INSTGEN); do cp --remove-destination $$f $(KERNELSRC)/scripts/kconfig/$${f}_shipped; done; \ |
156 | cp --remove-destination Makefile.kernel $(KERNELSRC)/scripts/kconfig/Makefile; \ | 156 | cp --remove-destination Makefile.kernel $(KERNELSRC)/scripts/kconfig/Makefile; \ |
157 | cp --remove-destination lkc-language.txt $(KERNELSRC)/Documentation/kbuild/kconfig-language.txt | 157 | cp --remove-destination lkc-language.txt $(KERNELSRC)/Documentation/kbuild/kconfig-language.txt |
158 | 158 | ||
159 | diff: $(INSTGEN) | 159 | diff: $(INSTGEN) |
160 | for f in $(sort $(INST)); do diff -Nu $(KERNELSRC)/scripts/kconfig/$$f $$f; done; \ | 160 | for f in $(sort $(INST)); do diff -Nu $(KERNELSRC)/scripts/kconfig/$$f $$f; done; \ |
161 | for f in $(INSTGEN); do diff -Nu $(KERNELSRC)/scripts/kconfig/$${f}_shipped $$f; done; \ | 161 | for f in $(INSTGEN); do diff -Nu $(KERNELSRC)/scripts/kconfig/$${f}_shipped $$f; done; \ |
162 | diff -Nu $(KERNELSRC)/scripts/kconfig/Makefile Makefile.kernel; \ | 162 | diff -Nu $(KERNELSRC)/scripts/kconfig/Makefile Makefile.kernel; \ |
163 | diff -Nu lkc-language.txt $(KERNELSRC)/Documentation/kbuild/kconfig-language.txt | 163 | diff -Nu lkc-language.txt $(KERNELSRC)/Documentation/kbuild/kconfig-language.txt |
164 | else | 164 | else |
165 | install: | 165 | install: |
166 | @echo "Please use KERNELSRC=<path/to/linux-kernel> to install" | 166 | @echo "Please use KERNELSRC=<path/to/linux-kernel> to install" |
167 | endif | 167 | endif |
168 | 168 | ||
169 | ruby: .ruby libkconfig.so .ruby/kconfig.so | 169 | ruby: .ruby libkconfig.so .ruby/kconfig.so |
170 | 170 | ||
171 | .ruby: | 171 | .ruby: |
172 | mkdir .ruby | 172 | mkdir .ruby |
173 | 173 | ||
174 | .ruby/kconfig_wrap.c: kconfig.i kconfig_load.c expr.h lkc_proto.h | 174 | .ruby/kconfig_wrap.c: kconfig.i kconfig_load.c expr.h lkc_proto.h |
175 | swig -ruby -o $@ $< | 175 | swig -ruby -o $@ $< |
176 | 176 | ||
177 | .ruby/Makefile: extconf.rb | 177 | .ruby/Makefile: extconf.rb |
178 | cd .ruby; ruby ../extconf.rb | 178 | cd .ruby; ruby ../extconf.rb |
179 | 179 | ||
180 | .ruby/kconfig.so: .ruby/kconfig_wrap.c .ruby/Makefile | 180 | .ruby/kconfig.so: .ruby/kconfig_wrap.c .ruby/Makefile |
181 | $(MAKE) -C .ruby | 181 | $(MAKE) -C .ruby |
182 | 182 | ||
183 | 183 | ||
184 | PYTHON_INCLUDE=$(shell python -c "import sys; print '-I'+sys.prefix+'/include/python'+sys.version[:3]") | 184 | PYTHON_INCLUDE=$(shell python -c "import sys; print '-I'+sys.prefix+'/include/python'+sys.version[:3]") |
185 | 185 | ||
186 | python: .python .python/kconfig.py .python/_kconfig.so | 186 | python: .python .python/kconfig.py .python/_kconfig.so |
187 | 187 | ||
188 | .python: | 188 | .python: |
189 | mkdir .python | 189 | mkdir .python |
190 | 190 | ||
191 | .python/kconfig_wrap.c .python/kconfig.py: kconfig.i kconfig_load.c expr.h lkc_proto.h | 191 | .python/kconfig_wrap.c .python/kconfig.py: kconfig.i kconfig_load.c expr.h lkc_proto.h |
192 | swig -python -o .python/kconfig_wrap.c kconfig.i | 192 | swig -python -o .python/kconfig_wrap.c kconfig.i |
193 | 193 | ||
194 | .python/_kconfig.so: .python/kconfig_wrap.c | 194 | .python/_kconfig.so: .python/kconfig_wrap.c |
195 | cd .python; $(CC) $(CFLAGS) -shared kconfig_wrap.c -o _kconfig.so -I.. $(PYTHON_INCLUDE) | 195 | cd .python; $(CC) $(CFLAGS) -shared kconfig_wrap.c -o _kconfig.so -I.. $(PYTHON_INCLUDE) |
diff --git a/scripts/lxdialog/Makefile b/scripts/lxdialog/Makefile index 6d05cfd..e606d4b 100644 --- a/scripts/lxdialog/Makefile +++ b/scripts/lxdialog/Makefile | |||
@@ -1,56 +1,56 @@ | |||
1 | HOST_EXTRACFLAGS := -DLOCALE | 1 | HOST_EXTRACFLAGS := -DLOCALE |
2 | HOST_LOADLIBES := -lncurses | 2 | HOST_LOADLIBES := -lncurses |
3 | HOSTCC = gcc | 3 | HOSTCC = $(CCACHE) gcc |
4 | 4 | ||
5 | ifeq (/usr/include/ncurses/ncurses.h, $(wildcard /usr/include/ncurses/ncurses.h)) | 5 | ifeq (/usr/include/ncurses/ncurses.h, $(wildcard /usr/include/ncurses/ncurses.h)) |
6 | HOST_EXTRACFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" | 6 | HOST_EXTRACFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" |
7 | else | 7 | else |
8 | ifeq (/usr/include/ncurses/curses.h, $(wildcard /usr/include/ncurses/curses.h)) | 8 | ifeq (/usr/include/ncurses/curses.h, $(wildcard /usr/include/ncurses/curses.h)) |
9 | HOST_EXTRACFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>" | 9 | HOST_EXTRACFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>" |
10 | else | 10 | else |
11 | ifeq (/usr/include/ncurses.h, $(wildcard /usr/include/ncurses.h)) | 11 | ifeq (/usr/include/ncurses.h, $(wildcard /usr/include/ncurses.h)) |
12 | HOST_EXTRACFLAGS += -DCURSES_LOC="<ncurses.h>" | 12 | HOST_EXTRACFLAGS += -DCURSES_LOC="<ncurses.h>" |
13 | else | 13 | else |
14 | HOST_EXTRACFLAGS += -DCURSES_LOC="<curses.h>" | 14 | HOST_EXTRACFLAGS += -DCURSES_LOC="<curses.h>" |
15 | endif | 15 | endif |
16 | endif | 16 | endif |
17 | endif | 17 | endif |
18 | 18 | ||
19 | ifeq ($(filter clean mrproper distclean,$(MAKECMDGOALS)),) | 19 | ifeq ($(filter clean mrproper distclean,$(MAKECMDGOALS)),) |
20 | ifeq ($(filter -DCURSES_LOC%,$(HOST_EXTRACFLAGS)),) | 20 | ifeq ($(filter -DCURSES_LOC%,$(HOST_EXTRACFLAGS)),) |
21 | $(error Unable to locate ncurses.h or curses.h) | 21 | $(error Unable to locate ncurses.h or curses.h) |
22 | endif | 22 | endif |
23 | endif | 23 | endif |
24 | 24 | ||
25 | host-progs:= lxdialog | 25 | host-progs:= lxdialog |
26 | always := $(host-progs) | 26 | always := $(host-progs) |
27 | 27 | ||
28 | lxdialog-objs := checklist.o menubox.o textbox.o yesno.o inputbox.o \ | 28 | lxdialog-objs := checklist.o menubox.o textbox.o yesno.o inputbox.o \ |
29 | util.o lxdialog.o msgbox.o | 29 | util.o lxdialog.o msgbox.o |
30 | 30 | ||
31 | first_rule: ncurses lxdialog | 31 | first_rule: ncurses lxdialog |
32 | 32 | ||
33 | .PHONY: ncurses | 33 | .PHONY: ncurses |
34 | ncurses: | 34 | ncurses: |
35 | @echo "main() {}" > lxtemp.c | 35 | @echo "main() {}" > lxtemp.c |
36 | @if $(HOSTCC) lxtemp.c $(HOST_LOADLIBES); then \ | 36 | @if $(HOSTCC) lxtemp.c $(HOST_LOADLIBES); then \ |
37 | rm -f lxtemp.c a.out; \ | 37 | rm -f lxtemp.c a.out; \ |
38 | else \ | 38 | else \ |
39 | rm -f lxtemp.c; \ | 39 | rm -f lxtemp.c; \ |
40 | echo -e "\007" ;\ | 40 | echo -e "\007" ;\ |
41 | echo ">> Unable to find the Ncurses libraries." ;\ | 41 | echo ">> Unable to find the Ncurses libraries." ;\ |
42 | echo ">>" ;\ | 42 | echo ">>" ;\ |
43 | echo ">> You must have Ncurses installed in order" ;\ | 43 | echo ">> You must have Ncurses installed in order" ;\ |
44 | echo ">> to use 'make menuconfig'" ;\ | 44 | echo ">> to use 'make menuconfig'" ;\ |
45 | echo ;\ | 45 | echo ;\ |
46 | exit 1 ;\ | 46 | exit 1 ;\ |
47 | fi | 47 | fi |
48 | 48 | ||
49 | clean: | 49 | clean: |
50 | rm -f $(lxdialog-objs) lxdialog | 50 | rm -f $(lxdialog-objs) lxdialog |
51 | 51 | ||
52 | %.o: %.c | 52 | %.o: %.c |
53 | $(HOSTCC) $(HOST_EXTRACFLAGS) -fPIC -c $^ -o $@ | 53 | $(HOSTCC) $(HOST_EXTRACFLAGS) -fPIC -c $^ -o $@ |
54 | 54 | ||
55 | lxdialog: $(lxdialog-objs) | 55 | lxdialog: $(lxdialog-objs) |
56 | $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES) $^ -o $@ | 56 | $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES) $^ -o $@ |