]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/sdk/java/net/tinyos/packet/Makefile
Merge devel code into the trunk.
[tinyos-2.x.git] / support / sdk / java / net / tinyos / packet / Makefile
diff --git a/support/sdk/java/net/tinyos/packet/Makefile b/support/sdk/java/net/tinyos/packet/Makefile
new file mode 100644 (file)
index 0000000..94348ef
--- /dev/null
@@ -0,0 +1,12 @@
+# Makefile for tools/java/net/tinyos/packet
+
+INITIAL_TARGETS = Serial.class
+
+ROOT = ../../..
+include $(ROOT)/Makefile.include
+
+TOS=$(shell ncc -print-tosdir)
+SERIAL_H = $(TOS)/lib/serial/Serial.h
+
+Serial.java: $(SERIAL_H)
+       ncg -o $@ -java-classname=net.tinyos.packet.Serial java $(SERIAL_H) Serial.h