]> rtime.felk.cvut.cz Git - sysless.git/commitdiff
lpc21isp is now compiled by OMK.
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 26 Mar 2008 19:27:14 +0000 (20:27 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 26 Mar 2008 19:27:14 +0000 (20:27 +0100)
Fixes problem with make clean.

arch/arm/mach-lpc21xx/tools/lpc21isp/Makefile
arch/arm/mach-lpc21xx/tools/lpc21isp/Makefile.omk [new file with mode: 0644]

index e01bc38cb585e58793effe17fd14a3c51b4751a6..f595272447ee336c2773b8736d60ee6e88cf5189 100644 (file)
@@ -1,13 +1,14 @@
-.PHONY: all
+# Generic directory or leaf node makefile for OCERA make framework
 
-ifeq ($(SOURCES_DIR),)
-all: lpc21isp
-else
-# if called from OMK
-all:
-       $(MAKE) -C $(SOURCES_DIR) SOURCES_DIR='' all
+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 partent directory\n"
+else   
+include $(MAKERULES_DIR)/Makefile.rules
 endif
 
-# if called from OMK
-binary-pass: all
-check-dir include-pass library-pass utils-pass default-config-pass:
diff --git a/arch/arm/mach-lpc21xx/tools/lpc21isp/Makefile.omk b/arch/arm/mach-lpc21xx/tools/lpc21isp/Makefile.omk
new file mode 100644 (file)
index 0000000..4462c93
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- makefile -*-
+
+utils_PROGRAMS = lpc21isp
+
+lpc21isp_SOURCES = lpc21isp.c