Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 1 | # =========================================================================== |
| 2 | # Kernel configuration targets |
| 3 | # These targets are used from top-level makefile |
| 4 | |
| 5 | PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config |
| 6 | |
Patrick Georgi | 26774f2 | 2009-11-21 19:54:02 +0000 | [diff] [blame] | 7 | _OS=$(shell uname -s |cut -c-7) |
| 8 | regex-objs= |
| 9 | ifeq ($(_OS),MINGW32) |
| 10 | regex-objs=regex.o |
| 11 | endif |
| 12 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 13 | Kconfig := src/Kconfig |
| 14 | |
Patrick Georgi | 9ebd65d | 2010-04-27 09:23:33 +0000 | [diff] [blame] | 15 | xconfig: $(objk)/qconf |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 16 | $(objk)/qconf $(Kconfig) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 17 | |
Patrick Georgi | 9ebd65d | 2010-04-27 09:23:33 +0000 | [diff] [blame] | 18 | gconfig: $(objk)/gconf |
Uwe Hermann | 6113c1c | 2012-04-12 21:39:27 +0200 | [diff] [blame] | 19 | cp -f $(srck)/gconf.glade $(objk)/gconf.glade |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 20 | $(objk)/gconf $(Kconfig) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 21 | |
Patrick Georgi | 9ebd65d | 2010-04-27 09:23:33 +0000 | [diff] [blame] | 22 | menuconfig: $(objk)/mconf |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 23 | $(objk)/mconf $(Kconfig) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 24 | |
Patrick Georgi | 9ebd65d | 2010-04-27 09:23:33 +0000 | [diff] [blame] | 25 | config: $(objk)/conf |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 26 | $(objk)/conf $(Kconfig) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 27 | |
Patrick Georgi | 9ebd65d | 2010-04-27 09:23:33 +0000 | [diff] [blame] | 28 | oldconfig: $(objk)/conf |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 29 | $(objk)/conf -o $(Kconfig) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 30 | |
Patrick Georgi | 9ebd65d | 2010-04-27 09:23:33 +0000 | [diff] [blame] | 31 | silentoldconfig: $(objk)/conf |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 32 | $(objk)/conf -s $(Kconfig) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 33 | |
| 34 | # --- UNUSED, ignore ---------------------------------------------------------- |
| 35 | # Create new linux.pot file |
| 36 | # Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files |
| 37 | # The symlink is used to repair a deficiency in arch/um |
| 38 | update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 39 | echo " GEN config" |
| 40 | xgettext --default-domain=linux \ |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 41 | --add-comments --keyword=_ --keyword=N_ \ |
| 42 | --from-code=UTF-8 \ |
| 43 | --files-from=scripts/kconfig/POTFILES.in \ |
| 44 | --output $(obj)/config.pot |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 45 | sed -i s/CHARSET/UTF-8/ $(obj)/config.pot |
| 46 | ln -fs Kconfig.i386 arch/um/Kconfig.arch |
| 47 | (for i in `ls arch/`; \ |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 48 | do \ |
| 49 | echo " GEN $$i"; \ |
| 50 | $(obj)/kxgettext arch/$$i/Kconfig \ |
| 51 | >> $(obj)/config.pot; \ |
| 52 | done ) |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 53 | msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \ |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 54 | --output $(obj)/linux.pot |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 55 | rm -f arch/um/Kconfig.arch |
| 56 | rm -f $(obj)/config.pot |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 57 | # --- UNUSED, ignore ---------------------------------------------------------- |
| 58 | |
| 59 | PHONY += randconfig allyesconfig allnoconfig allmodconfig defconfig |
| 60 | |
Patrick Georgi | 9ebd65d | 2010-04-27 09:23:33 +0000 | [diff] [blame] | 61 | randconfig: $(objk)/conf |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 62 | $(objk)/conf -r $(Kconfig) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 63 | |
Patrick Georgi | 9ebd65d | 2010-04-27 09:23:33 +0000 | [diff] [blame] | 64 | allyesconfig: $(objk)/conf |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 65 | $(objk)/conf -y $(Kconfig) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 66 | |
Patrick Georgi | 9ebd65d | 2010-04-27 09:23:33 +0000 | [diff] [blame] | 67 | allnoconfig: $(objk)/conf |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 68 | $(objk)/conf -n $(Kconfig) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 69 | |
Patrick Georgi | 9ebd65d | 2010-04-27 09:23:33 +0000 | [diff] [blame] | 70 | allmodconfig: $(objk)/conf |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 71 | $(objk)/conf -m $(Kconfig) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 72 | |
Patrick Georgi | 9ebd65d | 2010-04-27 09:23:33 +0000 | [diff] [blame] | 73 | defconfig: $(objk)/conf |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 74 | ifeq ($(KBUILD_DEFCONFIG),) |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 75 | $(objk)/conf -d $(Kconfig) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 76 | else |
| 77 | @echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 78 | $(objk)/conf -D $(KBUILD_DEFCONFIG) $(Kconfig) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 79 | endif |
| 80 | |
Patrick Georgi | 9ebd65d | 2010-04-27 09:23:33 +0000 | [diff] [blame] | 81 | %_defconfig: $(objk)/conf |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 82 | $(objk)/conf -D configs/$@ $(Kconfig) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 83 | |
| 84 | # Help text used by make help |
| 85 | help: |
| 86 | @echo ' config - Update current config utilising a line-oriented program' |
| 87 | @echo ' menuconfig - Update current config utilising a menu based program' |
| 88 | @echo ' xconfig - Update current config utilising a QT based front-end' |
| 89 | @echo ' gconfig - Update current config utilising a GTK based front-end' |
| 90 | @echo ' oldconfig - Update current config utilising a provided .config as base' |
| 91 | @echo ' silentoldconfig - Same as oldconfig, but quietly' |
| 92 | @echo ' randconfig - New config with random answer to all options' |
| 93 | @echo ' defconfig - New config with default answer to all options' |
| 94 | @echo ' allmodconfig - New config selecting modules when possible' |
| 95 | @echo ' allyesconfig - New config where all options are accepted with yes' |
| 96 | @echo ' allnoconfig - New config where all options are answered with no' |
| 97 | |
| 98 | # lxdialog stuff |
| 99 | check-lxdialog := $(srck)/lxdialog/check-lxdialog.sh |
| 100 | |
| 101 | # Use recursively expanded variables so we do not call gcc unless |
| 102 | # we really need to do so. (Do not call gcc as part of make mrproper) |
| 103 | HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) |
| 104 | HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) |
| 105 | |
| 106 | HOST_EXTRACFLAGS += -DLOCALE |
| 107 | |
| 108 | |
| 109 | # =========================================================================== |
| 110 | # Shared Makefile for the various kconfig executables: |
| 111 | # conf: Used for defconfig, oldconfig and related targets |
| 112 | # mconf: Used for the mconfig target. |
| 113 | # Utilizes the lxdialog package |
| 114 | # qconf: Used for the xconfig target |
| 115 | # Based on QT which needs to be installed to compile it |
| 116 | # gconf: Used for the gconfig target |
| 117 | # Based on GTK which needs to be installed to compile it |
| 118 | # object files used by all kconfig flavours |
| 119 | |
| 120 | lxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o |
| 121 | lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o |
| 122 | |
Patrick Georgi | 26774f2 | 2009-11-21 19:54:02 +0000 | [diff] [blame] | 123 | conf-objs := conf.o zconf.tab.o $(regex-objs) |
| 124 | mconf-objs := mconf.o zconf.tab.o $(lxdialog) $(regex-objs) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 125 | kxgettext-objs := kxgettext.o zconf.tab.o |
| 126 | |
| 127 | hostprogs-y := conf qconf gconf kxgettext |
| 128 | |
| 129 | ifeq ($(MAKECMDGOALS),menuconfig) |
| 130 | hostprogs-y += mconf |
| 131 | endif |
| 132 | |
| 133 | ifeq ($(MAKECMDGOALS),xconfig) |
| 134 | qconf-target := 1 |
| 135 | endif |
| 136 | ifeq ($(MAKECMDGOALS),gconfig) |
| 137 | gconf-target := 1 |
| 138 | endif |
| 139 | |
| 140 | |
| 141 | ifeq ($(qconf-target),1) |
| 142 | qconf-cxxobjs := qconf.o |
Patrick Georgi | 26774f2 | 2009-11-21 19:54:02 +0000 | [diff] [blame] | 143 | qconf-objs := kconfig_load.o zconf.tab.o $(regex-objs) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 144 | endif |
| 145 | |
| 146 | ifeq ($(gconf-target),1) |
Patrick Georgi | 26774f2 | 2009-11-21 19:54:02 +0000 | [diff] [blame] | 147 | gconf-objs := gconf.o kconfig_load.o zconf.tab.o $(regex-objs) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 148 | endif |
| 149 | |
| 150 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ |
| 151 | .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h |
| 152 | clean-files += mconf qconf gconf |
| 153 | clean-files += config.pot coreinfo.pot |
| 154 | |
| 155 | # Check that we have the required ncurses stuff installed for lxdialog (menuconfig) |
| 156 | PHONY += $(objk)/dochecklxdialog |
| 157 | $(addprefix $(obj)/,$(lxdialog)): $(objk)/dochecklxdialog |
| 158 | $(objk)/dochecklxdialog: |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 159 | $(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 160 | |
| 161 | always := dochecklxdialog |
| 162 | |
| 163 | # Add environment specific flags |
| 164 | HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srck)/check.sh $(HOSTCC) $(HOSTCFLAGS)) |
| 165 | |
| 166 | # generated files seem to need this to find local include files |
| 167 | HOSTCFLAGS_lex.zconf.o := -I$(src) |
| 168 | HOSTCFLAGS_zconf.tab.o := -I$(src) |
| 169 | |
| 170 | HOSTLOADLIBES_qconf = $(KC_QT_LIBS) -ldl |
| 171 | HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) -D LKC_DIRECT_LINK |
| 172 | |
| 173 | HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` |
| 174 | HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \ |
| 175 | -D LKC_DIRECT_LINK |
| 176 | |
| 177 | $(objk)/qconf.o: $(objk)/.tmp_qtcheck |
| 178 | |
| 179 | ifeq ($(qconf-target),1) |
| 180 | $(objk)/.tmp_qtcheck: $(srck)/Makefile |
| 181 | -include $(objk)/.tmp_qtcheck |
| 182 | |
| 183 | # QT needs some extra effort... |
Patrick Georgi | 9ebd65d | 2010-04-27 09:23:33 +0000 | [diff] [blame] | 184 | $(objk)/.tmp_qtcheck: |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 185 | @set -e; dir=""; pkg=""; \ |
| 186 | pkg-config --exists qt 2> /dev/null && pkg=qt; \ |
| 187 | pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt; \ |
| 188 | if [ -n "$$pkg" ]; then \ |
| 189 | cflags="\$$(shell pkg-config $$pkg --cflags)"; \ |
| 190 | libs="\$$(shell pkg-config $$pkg --libs)"; \ |
| 191 | moc="\$$(shell pkg-config $$pkg --variable=prefix)/bin/moc"; \ |
| 192 | dir="$$(pkg-config $$pkg --variable=prefix)"; \ |
| 193 | else \ |
| 194 | for d in $$QTDIR /usr/share/qt* /usr/lib/qt*; do \ |
| 195 | if [ -f $$d/include/qconfig.h ]; then dir=$$d; break; fi; \ |
| 196 | done; \ |
| 197 | if [ -z "$$dir" ]; then \ |
| 198 | echo "*"; \ |
| 199 | echo "* Unable to find the QT3 installation. Please make sure that"; \ |
| 200 | echo "* the QT3 development package is correctly installed and"; \ |
| 201 | echo "* either install pkg-config or set the QTDIR environment"; \ |
| 202 | echo "* variable to the correct location."; \ |
| 203 | echo "*"; \ |
| 204 | false; \ |
| 205 | fi; \ |
| 206 | libpath=$$dir/lib; lib=qt; osdir=""; \ |
| 207 | $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \ |
| 208 | osdir=x$$($(HOSTCXX) -print-multi-os-directory); \ |
| 209 | test -d $$libpath/$$osdir && libpath=$$libpath/$$osdir; \ |
| 210 | test -f $$libpath/libqt-mt.so && lib=qt-mt; \ |
| 211 | cflags="-I$$dir/include"; \ |
| 212 | libs="-L$$libpath -Wl,-rpath,$$libpath -l$$lib"; \ |
| 213 | moc="$$dir/bin/moc"; \ |
| 214 | fi; \ |
| 215 | if [ ! -x $$dir/bin/moc -a -x /usr/bin/moc ]; then \ |
| 216 | echo "*"; \ |
| 217 | echo "* Unable to find $$dir/bin/moc, using /usr/bin/moc instead."; \ |
| 218 | echo "*"; \ |
| 219 | moc="/usr/bin/moc"; \ |
| 220 | fi; \ |
| 221 | echo "KC_QT_CFLAGS=$$cflags" > $@; \ |
| 222 | echo "KC_QT_LIBS=$$libs" >> $@; \ |
| 223 | echo "KC_QT_MOC=$$moc" >> $@ |
| 224 | endif |
| 225 | |
| 226 | $(objk)/gconf.o: $(objk)/.tmp_gtkcheck |
| 227 | |
| 228 | ifeq ($(gconf-target),1) |
| 229 | -include $(objk)/.tmp_gtkcheck |
| 230 | |
| 231 | # GTK needs some extra effort, too... |
Patrick Georgi | 9ebd65d | 2010-04-27 09:23:33 +0000 | [diff] [blame] | 232 | $(objk)/.tmp_gtkcheck: |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 233 | @if `pkg-config --exists gtk+-2.0 gmodule-2.0 libglade-2.0`; then \ |
| 234 | if `pkg-config --atleast-version=2.0.0 gtk+-2.0`; then \ |
| 235 | touch $@; \ |
| 236 | else \ |
| 237 | echo "*"; \ |
| 238 | echo "* GTK+ is present but version >= 2.0.0 is required."; \ |
| 239 | echo "*"; \ |
| 240 | false; \ |
| 241 | fi \ |
| 242 | else \ |
| 243 | echo "*"; \ |
| 244 | echo "* Unable to find the GTK+ installation. Please make sure that"; \ |
| 245 | echo "* the GTK+ 2.0 development package is correctly installed..."; \ |
| 246 | echo "* You need gtk+-2.0, glib-2.0 and libglade-2.0."; \ |
| 247 | echo "*"; \ |
| 248 | false; \ |
| 249 | fi |
| 250 | endif |
| 251 | |
| 252 | # --- UNUSED, ignore ---------------------------------------------------------- |
| 253 | ifdef UNUSED |
| 254 | $(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c |
| 255 | |
| 256 | $(obj)/kconfig_load.o: $(obj)/lkc_defs.h |
| 257 | |
| 258 | $(obj)/qconf.o: $(obj)/qconf.moc $(obj)/lkc_defs.h |
| 259 | |
| 260 | $(obj)/gconf.o: $(obj)/lkc_defs.h |
| 261 | |
| 262 | $(obj)/%.moc: $(src)/%.h |
| 263 | $(KC_QT_MOC) -i $< -o $@ |
| 264 | |
| 265 | $(obj)/lkc_defs.h: $(src)/lkc_proto.h |
| 266 | sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' |
| 267 | |
| 268 | # Extract gconf menu items for I18N support |
| 269 | $(obj)/gconf.glade.h: $(obj)/gconf.glade |
| 270 | intltool-extract --type=gettext/glade $(obj)/gconf.glade |
| 271 | endif |
| 272 | # --- UNUSED, ignore ---------------------------------------------------------- |
| 273 | |
| 274 | ### |
| 275 | # The following requires flex/bison/gperf |
| 276 | # By default we use the _shipped versions, uncomment the following line if |
| 277 | # you are modifying the flex/bison src. |
| 278 | # LKC_GENPARSER := 1 |
| 279 | |
| 280 | ifdef LKC_GENPARSER |
| 281 | |
| 282 | # --- UNUSED, ignore ---------------------------------------------------------- |
| 283 | $(obj)/zconf.tab.c: $(src)/zconf.y |
| 284 | $(obj)/lex.zconf.c: $(src)/zconf.l |
| 285 | $(obj)/zconf.hash.c: $(src)/zconf.gperf |
| 286 | |
| 287 | %.tab.c: %.y |
| 288 | bison -l -b $* -p $(notdir $*) $< |
| 289 | cp $@ $@_shipped |
| 290 | |
| 291 | lex.%.c: %.l |
| 292 | flex -L -P$(notdir $*) -o$@ $< |
| 293 | cp $@ $@_shipped |
| 294 | |
| 295 | %.hash.c: %.gperf |
| 296 | gperf < $< > $@ |
| 297 | cp $@ $@_shipped |
| 298 | # --- UNUSED, ignore ---------------------------------------------------------- |
| 299 | |
| 300 | endif |
| 301 | |
| 302 | $(objk)/qconf: $(patsubst %,$(objk)/%,$(qconf-cxxobjs)) \ |
| 303 | $(patsubst %,$(objk)/%,$(qconf-objs)) |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 304 | $(HOSTCXX) $(HOSTCXXFLAGS) $(HOSTLOADLIBES_qconf) -o $@ $^ |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 305 | $(objk)/gconf: $(patsubst %,$(objk)/%,$(gconf-objs)) |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 306 | $(HOSTCC) $(HOSTCFLAGS) $(HOSTLOADLIBES_gconf) -o $@ $^ |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 307 | $(objk)/mconf: $(patsubst %,$(objk)/%,$(mconf-objs)) |
Stefan Reinauer | 355632b | 2011-01-05 02:10:50 +0000 | [diff] [blame] | 308 | $(HOSTCC) $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) $^ $(HOST_LOADLIBES) -o $@ |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 309 | $(objk)/conf: $(patsubst %,$(objk)/%,$(conf-objs)) |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 310 | $(HOSTCC) $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) -o $@ $^ |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 311 | |
| 312 | $(objk)/mconf.o: $(srck)/mconf.c |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 313 | $(HOSTCC) $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) -c -o $@ $< |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 314 | $(objk)/conf.o: $(srck)/conf.c |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 315 | $(HOSTCC) $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) -c -o $@ $< |
Patrick Georgi | 26774f2 | 2009-11-21 19:54:02 +0000 | [diff] [blame] | 316 | $(objk)/regex.o: $(srck)/regex.c |
| 317 | $(HOSTCC) $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) -DHAVE_STRING_H -c -o $@ $< |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 318 | |
| 319 | $(objk)/zconf.tab.o: $(objk)/zconf.tab.c $(objk)/lex.zconf.c \ |
| 320 | $(objk)/zconf.hash.c |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 321 | $(HOSTCC) $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) -c -o $@ $(objk)/zconf.tab.c |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 322 | $(objk)/kconfig_load.o: $(srck)/kconfig_load.c $(objk)/lkc_defs.h |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 323 | $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $< |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 324 | $(objk)/qconf.o: $(srck)/qconf.cc $(objk)/qconf.moc $(objk)/lkc_defs.h |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 325 | $(HOSTCXX) $(HOSTCXXFLAGS) $(HOSTCXXFLAGS_qconf.o) -c -o $@ $< |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 326 | $(objk)/gconf.o: $(srck)/gconf.c $(objk)/lkc_defs.h |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 327 | $(HOSTCC) $(HOSTCFLAGS) $(HOSTCFLAGS_gconf.o) -c -o $@ $< |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 328 | $(objk)/%.moc: $(srck)/%.h |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 329 | $(KC_QT_MOC) -i $< -o $@ |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 330 | $(objk)/lkc_defs.h: $(srck)/lkc_proto.h |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 331 | sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 332 | |
| 333 | $(objk)/lex.zconf.c: $(srck)/lex.zconf.c_shipped |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 334 | cp $< $@ |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 335 | $(objk)/zconf.hash.c: $(srck)/zconf.hash.c_shipped |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 336 | cp $< $@ |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 337 | $(objk)/zconf.tab.c: $(srck)/zconf.tab.c_shipped |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 338 | cp $< $@ |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 339 | |
| 340 | $(objk)/lxdialog/lxdialog: $(objk)/dochecklxdialog \ |
| 341 | $(patsubst %,$(objk)/lxdialog/%,$(lxdialog)) |
Christian Ruppert | 74b6599 | 2011-12-17 21:56:05 +0100 | [diff] [blame] | 342 | $(HOSTCC) $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) \ |
| 343 | $(patsubst %,$(objk)/lxdialog/%,$(lxdialog)) $(HOST_LOADLIBES) -o $@ |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 344 | $(objk)/lxdialog/%.o: $(srck)/lxdialog/%.c |
Patrick Georgi | 2b7418e | 2009-08-25 19:38:46 +0000 | [diff] [blame] | 345 | $(HOSTCC) $(HOSTCFLAGS) $(HOST_EXTRACFLAGS) $^ -c -o $@ |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 346 | |
Patrick Georgi | b3a18ac | 2012-09-13 22:13:33 +0200 | [diff] [blame] | 347 | $(objk)/%.o: HOSTCFLAGS+=-I$(srck) -I$(objk) |
| 348 | $(objk)/%.o: HOSTCXXFLAGS+=-I$(srck) -I$(objk) |