Thread: Makefile
View Single Post
  #1   Spotlight this post!  
Unread 13-01-2007, 04:27
fauxnominal fauxnominal is offline
Registered User
no team
 
Join Date: Jan 2007
Location: n/a
Posts: 7
fauxnominal is an unknown quantity at this point
Makefile

this is on a linux box and i am running the compiler under wine.

i'm trying to make a Makefile that automates building individual parts of the robot code. for example, if i want to just compile the adc code, i can enter make adc in the toplevel src directory.

the problem is, i can't seem to find the equivalent of gcc's -c in the 2.4 compiler (which, for those unfamiliar, allows for compilation, but no linking to occur).

i think that's the issue that's causing compiler errors like this:
Z:\home\fauxnominal\robotics\src\adc\adc.c:0:Error : syntax error

any ideas? i looked at the compiler's --help options, but didn't see anything that worked.