X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=support%2Fsdk%2Fc%2Fsf%2FMakefile.am;h=3110210c0f59d07cab59d8a37ac2cef280b6c4f2;hb=16b4884bf03fb4e9ff72bc2879ff262b716da334;hp=b26b8059285429e77197773bcfe4ed91a328de77;hpb=0344a0621c0b17ebd7037d96be7e298f3f6a3165;p=tinyos-2.x.git diff --git a/support/sdk/c/sf/Makefile.am b/support/sdk/c/sf/Makefile.am index b26b8059..3110210c 100644 --- a/support/sdk/c/sf/Makefile.am +++ b/support/sdk/c/sf/Makefile.am @@ -1,5 +1,7 @@ AUTOMAKE_OPTIONS = foreign +CFLAGS = -D_POSIX_C_SOURCE + TOS=$(shell ncc -print-tosdir) SERIAL_H = $(TOS)/lib/serial/Serial.h @@ -34,7 +36,7 @@ libmote_a_SOURCES = \ sfsource.c serialpacket.c serialpacket.h: $(SERIAL_H) - mig -o serialpacket.h -c-prefix=spacket c $(SERIAL_H) serial_packet + mig -o serialpacket.h -c-prefix=spacket c $(SERIAL_H) serial_packet $(CFLAGS) serialprotocol.h: $(SERIAL_H) - ncg -o $@ -c-prefix=SERIAL c $(SERIAL_H) Serial.h + ncg -o $@ -c-prefix=SERIAL c $(SERIAL_H) Serial.h $(CFLAGS)