TARGETS:= # # directories # TARGET_DIR?=/tmp/test DL_DIR:=dl LINUX_VERSION:=$(shell [ -f ../mkkernel.sh ] && sed -n -e 's/^default_version=//p' ../mkkernel.sh) BUILD_DIR?=build-$(LINUX_VERSION) LINUX_DIR:=/home/fli4l/kernel/linux-$(LINUX_VERSION) SF_DL_HOST:=mesh.dl.sourceforge.net FLI4L_SRC:=$(shell sh -c "if [ -d ../../../../src/src/fli4l ]; then echo '../../../../src/src/fli4l'; else echo '../../fli4l'; fi") # # tools # WGET:=sh toolchain/wget.sh PATCH:=sh toolchain/patch-kernel.sh STRIP:=strip -R .comment -R .note TAR_OPTIONS:=-xf TARGET_CONFIGURE_CFLAGS=$(TARGET_CFLAGS) TARGET_CONFIGURE_OPTS=CFLAGS="$(TARGET_CONFIGURE_CFLAGS)" SH=sh SED=sed FAKEROOT=fakeroot -- # include package/Makefile.in include package/*/Makefile.in all: world TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS)) TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS)) TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS)) world: $(DL_DIR) $(BUILD_DIR) $(TARGET_DIR) $(TARGETS) .PHONY: all world clean dirclean distclean source $(TARGETS) \ $(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) \ $(DL_DIR) $(BUILD_DIR) $(TOOL_BUILD_DIR) $(STAGING_DIR) include package/*/*.mk ############################################################# # # staging and target directories do NOT list these as # dependancies anywhere else # ############################################################# $(DL_DIR): @mkdir -p $(DL_DIR) $(BUILD_DIR): @mkdir -p $(BUILD_DIR) $(TARGET_DIR): @mkdir -p $(TARGET_DIR) source: $(TARGETS_SOURCE) ############################################################# # # Cleanup and misc junk # ############################################################# clean: $(TARGETS_CLEAN) dirclean: $(TARGETS_DIRCLEAN) distclean: rm -rf $(DL_DIR) $(BUILD_DIR) showtargets: @echo "Targets: $(TARGETS)" .PHONY: dummy subdirs release distclean clean config oldconfig \ menuconfig tags check test depend showtargets