]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/Makefile
Added missing spin-lock initialization and minor Makefiles update.
[lincan.git] / lincan / Makefile
index 60ca0a662e1b9f2f34ee378541a9d91786cdf524..d64354563d43ba4a44109f118b605d533e4119b0 100644 (file)
 
 SUBDIRS = src utils
 
-ifneq ($(wildcard ./Standalone.mk),)
+ifndef SOURCES_DIR
+SOURCES_DIR := $(shell ( pwd -L ) )
+endif
+
+ifneq ($(wildcard $(SOURCES_DIR)/Standalone.mk),)
 # Standalone make outside of OCERA framework
 
 all: default
 
 .PHONY: dep default subdirs clean cleandepend
+.PHONY: check-dir include-pass library-pass binary-pass utils-pass kernel-lib-pass kernel-pass
 
 dirs = src utils
 
-default dep clean install:
-       $(foreach dir, $(dirs), $(MAKE) -C $(dir) $@ ; )
+default dep clean install utils-pass kernel-pass:
+       $(foreach dir, $(dirs), $(MAKE) -C $(SOURCES_DIR)/$(dir) \
+           SOURCES_DIR=$(SOURCES_DIR)/$(dir) $@ ; )
 
 else
 # Build in structure of OCERA framework