Hi,
 Can anyone throw some light on what is the best way (syntactically) to
include multiple files in the makefile? I need to include the following
files for one application:

  /usr/include/math.h
  /opt/tinyos-1.x/tos/interfaces/Random.nc

and two header files (config.h and nMotesMsg.h) from my own application
folder (which is /opt/tinyos-1.x/apps/FlajoletMartin/BaseStation).

I tried the following:

 COMPONENT=BaseStation
 PFLAGS=-I/usr/include
 PFLAGS=-I%T/interfaces
 PFLAGS=-I../Library
 include ../../Makerules

 but this gives too many errors in the system files of TinyOS, which is not
reasonable.
 I also tried the following alternative:

 COMPONENT=BaseStation
include /usr/include/math.h
include /opt/tinyos-1.x/tos/interfaces/Random.nc
include /opt/tinyos-1.x/apps/FlajoletMartin/BaseStation/Library/config.h
include /opt/tinyos-1.x/apps/FlajoletMartin/BaseStation/Library/nMotesMsg.h
include ../../Makerules

 which gives the following error:

/usr/include/math.h:1: *** missing separator.  Stop.

which seems to stem from the fact that unlike most other DOS Make programs
which accept any whitespace character at the beginning of a command in a
rule, GNU Make insists that every such line begins with a TAB.
Anyway, what I'm looking for is a general guideline on how to include
multiple files in the makefile.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to