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