Hi
my file looks different (i'm using tinyos-2.0.2):
# Top-level Makefile for tools/java

SUBDIRS = net

JAVADOCDIR = ../../../doc/html/tos-javasdk-javadoc

ROOT = .
include $(ROOT)/Makefile.include

tinyos.jar: all
        rm -f tinyos.jar
        @# create the jar, as update requires it to exist. we use a
        @# .class file we assume always exists
        find . | grep -E "class|jpg|gif" | xargs jar cf tinyos.jar


javadoc: all
        rm -rf $(JAVADOCDIR)
        mkdir -p $(JAVADOCDIR)
        javadoc -d $(JAVADOCDIR) `find -name *.java`

when i'm using it, it doesn't work, cannot find class SerialPacket

when i'm using what you wrote:
# Top-level Makefile for tools/java

INITIAL_TARGETS = SerialPacket.class SerialPacket.java

ROOT = ../../..
include $(ROOT)/Makefile.include

TOS=$(shell ncc -print-tosdir)
SERIAL_H = $(TOSDIR)/lib/serial/Serial.h

SerialPacket.java: $(SERIAL_H) FORCE
         mig -o $@ -java-classname=net.tinyos.message.SerialPacket  
java $(SERIAL_H) serial_packet -I$(TOSDIR)/types

still doesn' work.
i tried different combination but still nothing.
what's wrong with it or what am i doing wrong(i'm a new one to tinyos)?how to 
run this example?
Regards,
Sebastian

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

Reply via email to