I figured it out, it's done like this:

COMPONENT=TestSerialAppC
BUILD_EXTRA_DEPS += TestSerial.py TestSerial.class
CLEAN_EXTRA = *.class TestSerialMsg.java

CFLAGS += -I$(TOSDIR)/lib/T2Hack

TestSerial.py: TestSerial.h
        mig python -target=$(PLATFORM) $(CFLAGS) -python- 
classname=TestSerialMsg TestSerial.h test_serial_msg -o $@

TestSerial.class: $(wildcard *.java) TestSerialMsg.java
        javac -target 1.4 -source 1.4 *.java

TestSerialMsg.java:
        mig java -target=null $(CFLAGS) -java-classname=TestSerialMsg  
TestSerial.h test_serial_msg -o $@


include $(MAKERULES)


Andres Vahter
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to