Snippets can be recognized by .omk extension.
include prepare.omk #omkbuild
include build.omk #omkbuild
-
-# Local Variables:
-# mode:makefile-gmake
-# End:
-##################### -*- makefile-gmake -*-
+#####################
# Build pseudo-pass #
#####################
@$(foreach confh,$(config_h_stamp_files) $(kern_config_h_stamp_files),\
if [ -e $(confh) ] ; then rm $(confh) ; fi ; \
)
-
-
-# Local Variables:
-# mode:makefile
-# End:
-############## -*- makefile-gmake -*-
+##############
# C programs #
##############
@$(QUIET_CMD_ECHO) " LINK $$@"
$(Q) $(LD) --shared --soname=lib$(1).so -o $$@ $$^
endef
-
-# Local Variables:
-# mode:makefile
-# End:
cmp --quiet TODO_BUILD_DIR/$$$${srcfname} $(1)/$$$${destfname} \
|| ( mkdir -p `dirname $(1)/$$$${destfname}` && $$(call cp_cmd,TODO_BUILD_DIR/$$$${srcfname},$(1)/$$$${destfname}) ) || exit 1 ; )
endef
-
-# Local Variables:
-# mode:makefile-gmake
-# End:
$(AR) ADD $$$${S// /,} TO $$$$L $(FILTER_KEIL_LIB_OUTPUT)
@touch $(USER_LIB_DIR)/timestamp
endef
-
-# Local Variables:
-# mode:makefile
-# End:
for i in $$^ ; do $(AR) ADD $$$$i TO $$@ ; done
@touch $(USER_LIB_DIR)/timestamp
endef
-
-# Local Variables:
-# mode:makefile
-# End:
# Also make kernel passes if not disabled
default: kernel-lib-pass kernel-pass
endif
-
-# Local Variables:
-# mode:makefile
-# End:
#$(warning $(local_EVALUATE))
$(eval $(local_EVALUATE))
endif
-
-# Local Variables:
-# mode:makefile
-# End:
-################ -*- makefile-gmake -*-
+################
# Prepare pass #
################
RELATIVE_DIR=$(RELATIVE_PREFIX)$(dir) -C $(SOURCES_DIR)/$(dir) \
-f $(SOURCES_DIR)/$(dir)/Makefile distclean|| exit 1 ;))
endif
-
-# Local Variables:
-# mode:makefile
-# End:
default: include-pass library-pass binary-pass
-
-# Local Variables:
-# mode:makefile
-# End:
include-pass-submakes: extra-rules-subdirs
# Which passes to pass
default: include-pass library-pass binary-pass utils-pass
-
-# Local Variables:
-# mode:makefile
-# End:
@$(QUIET_CMD_ECHO) " CSCOPE < $(SOURCES_LIST_FN)"
$(Q)sed -e '/^#/d' $(SOURCES_LIST)|cscope -b -i-
#FIXME: see doc to -i in cscope(1)
-
-# Local Variables:
-# mode:makefile
-# End:
include-pass-submakes: extra-rules-subdirs
# Which passes to pass
default: include-pass library-pass binary-pass utils-pass
-
-# Local Variables:
-# mode:makefile
-# End:
default: include-pass library-pass binary-pass
-
-# Local Variables:
-# mode:makefile
-# End: