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