The object file before final linking has to be included
in appdl embedded tar file or has to be transferred over
network (tftp, nfs, etc) to the target filesystem.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
--- /dev/null
+# Generic directory or leaf node makefile for OCERA make framework
+
+ifndef MAKERULES_DIR
+MAKERULES_DIR := $(shell ( old_pwd="" ; while [ ! -e Makefile.rules ] ; do if [ "$$old_pwd" = `pwd` ] ; then exit 1 ; else old_pwd=`pwd` ; cd -L .. 2>/dev/null ; fi ; done ; pwd ) )
+endif
+
+ifeq ($(MAKERULES_DIR),)
+all : default
+.DEFAULT::
+ @echo -e "\nThe Makefile.rules has not been found in this or parent directory\n"
+else
+include $(MAKERULES_DIR)/Makefile.rules
+endif
+
--- /dev/null
+default_CONFIG += CONFIG_OC_APP_DL_PRINT=x
+
+ifeq ($(CONFIG_OC_APP_DL_PRINT),y)
+
+test_PROGRAMS = appdl_print
+
+#lib_LIBRARIES =
+
+#include_HEADERS =
+
+appdl_print_SOURCES += appdl_print.c
+
+endif
--- /dev/null
+#include <stdio.h>
+
+int main(int argc, char *argv[])
+{
+ int i;
+ printf("%s: dynamicaly loaded code called\n", argv[0]);
+ for (i = 1; i < argc; i++) {
+ printf("%s: argument %i: %s\n", argv[0], i, argv[i]);
+ }
+ return 0;
+}