]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/make/ident_flags.extra
Merge devel code into the trunk.
[tinyos-2.x.git] / support / make / ident_flags.extra
diff --git a/support/make/ident_flags.extra b/support/make/ident_flags.extra
new file mode 100644 (file)
index 0000000..17d9147
--- /dev/null
@@ -0,0 +1,14 @@
+#-*-Makefile-*- vim:syntax=make
+#$Id$
+
+IDENT_PL ?= tos-ident-flags
+IDENT_PROGRAM_NAME ?= $(COMPONENT)
+IDENT_FLAGS := $(shell $(IDENT_PL) "$(IDENT_PROGRAM_NAME)")
+
+CFLAGS += $(IDENT_FLAGS)
+
+BUILD_EXTRA_DEPS += ident_cache
+
+ident_cache: FORCE
+       @echo '$(IDENT_FLAGS)' > $(BUILDDIR)/ident_flags.txt
+