#!/usr/bin/make -f include ../source.mk include ../basever.mk V = 1 KBUILD_ARCH = $$(oh-architecture "$${OPK_HOST_ARCH}") JOBS = $$(printf '%s\n' /sys/devices/system/cpu/cpu[0-9]* | wc -l) # ProteanOS's GCC is currently broken: "-print-file-name=include" simply prints # "include". nsif_shell = $$(shell $$(CC) -print-file-name=include) nsif_gcc_v = $$($(CC) -v 2>&1 | sed -n '$$s/^gcc version \([0-9]\)\..*$$/\1/p;') nsif_inc = /usr/include/$(OPK_HOST_ARCH)/gcc/$(nsif_gcc_v) nsif_sed = 's|^\(NOSTDINC_FLAGS += .*\) $(nsif_shell)$$|\1 '"$(nsif_inc)|;" nop: @: menuconfig mrproper: oh-autobuild -T $@ build: set -e; \ if [ 'x$(OPK_HOST_PLAT)' != 'xdev' ]; then \ printf '%s\n' '$(OPK_SOURCE_VERSION)' | sed 's/^.*-/-/;' \ 1>src/localversion; \ if ! [ -e src/Makefile.orig ]; then \ mv src/Makefile src/Makefile.orig; \ sed $(nsif_sed) src/Makefile.orig 1>src/Makefile; \ fi; \ read img_src img_dest