You were quite close... make iris install CFLAGS="-DTOSH_DATA_LENGTH=102 -Dxxx=yyy" mib510./dev/ttyUSB0
Should work, in my experience this works better than setting it before the make - handled by the shell this variant is handled by make. That the quoutes are needed can easily be seen when using two compiler options But I would really place it between make and iris... It feels more natural... /RogerL -- Roger Larsson, Research Engineer Division of Mobile Networking and Computing Luleå University of Technology SE-931 87 Skellefteå ________________________________________ Från: [email protected] [[email protected]] för [email protected] [[email protected]] Skickat: den 26 januari 2011 14:14 Till: [email protected] Ämne: [Tinyos-help] CFLAGS Changes during make command Hallo together, here comes perhaps a quit simple question. Currently I am working with tinyos-2.1.0. Here you can find under /apps/BaseStation the basic files to setup a new basestation. Due to our normal project we need a different message-length than default to be used. we just added in the Makefile which can be found inthe above mentioned folder the following line: CFLAGS += -DTOSH_DATA_LENGTH = 102 In the next step we install the BaseStation with the following command: make iris install mib510./dev/ttyUSB0 Everthing runs as expected and works fine. Now the QUESTION: Is it possible to add the CFLAGS in the command line when send the make-command? Idea: the basic apps defined by tinyos do not need to be changed in Makefiles. So I am looking something like the following command: make iris install "CFLAGS += -DTOSH_DATA_LENGTH=102" mib510./dev/ttyUSB0 Can anyone help me or send me the comand I am looking for? Thanks a lot, Conny -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis Handy-Flat! http://portal.gmx.net/de/go/dsl _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
