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