X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=support%2Fsdk%2Fc%2Fsf%2FMakefile.am;h=eb8adc035a3a3ebeb1227e138943848fc7d4c747;hp=b26b8059285429e77197773bcfe4ed91a328de77;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/support/sdk/c/sf/Makefile.am b/support/sdk/c/sf/Makefile.am index b26b8059..eb8adc03 100644 --- a/support/sdk/c/sf/Makefile.am +++ b/support/sdk/c/sf/Makefile.am @@ -1,5 +1,6 @@ AUTOMAKE_OPTIONS = foreign +MIGFLAGS = -D_POSIX_C_SOURCE TOS=$(shell ncc -print-tosdir) SERIAL_H = $(TOS)/lib/serial/Serial.h @@ -34,7 +35,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 $(MIGFLAGS) serialprotocol.h: $(SERIAL_H) - ncg -o $@ -c-prefix=SERIAL c $(SERIAL_H) Serial.h + ncg -o $@ -c-prefix=SERIAL c $(SERIAL_H) Serial.h $(MIGFLAGS)