Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Makefile Errors (http://www.chiefdelphi.com/forums/showthread.php?t=62791)

neutrino15 29-01-2008 15:31

Makefile Errors
 
Hello Awesome Programmers:

I was trying to get the adambots configure.py script to work with a mac once and for all last night, and was up 'till 3 or so trying to debug this one error. :eek: I installed MCC18 in wine, set my path variable. I installed GAWK via fink (a darwin ports thing) and set my path accordingly. I then modified the configure.py script so that it matched the proper commands needed. The python script executes marvelously, and it makes a proper makefile. I plan on releasing this on CD when I am finished, However, when I executed the makefile, i got this:

Code:

-e Compiling adc.o...
-e 1.  Checking Dependencies for adc.o
i686-apple-darwin9-gcc-4.0.1: c: No such file or directory
make: *** [adc.o] Error 1

Now, neither ADC.c nor ADC.h is requiring anything called "c:"
The line of makefile that is causing this is the line that forces cpp to look for dependencies that MCC18 apparently uses to compile. Here is the line:

Code:

@cpp -nostdinc -isystem $(INCLUDE_PATH) -D __$(PIC) -M -MP ./$< -MF .deps/$*.deps
The $(INCLUDE_PATH) seems to be whats messing it up, but when I tried to echo include path, i got:

Code:

/Users/jordanperr/.wine/drive_c/MCC18/h
(which is correct)

For your information, the definitions at the top of the Makefile are below:
Code:

MCC18=wine mcc18.exe
PIC=18F8722
LIBNAME=FRC_library.lib
ARGS=-D_FRC_BOARD -w3 pa=3
LINKER=wine mplink
MP2HEX=wine mp2hex
IFILOAD=wine picloader
SERIAL_DEV=/dev/ttyS0
READLOG=./read.log
LIB_PATH=/Users/jordanperr/.wine/drive_c/MCC18/lib
CODE_PATH=Z:\\Users\\jordanperr\\Documents\\School\\Robotics\\FRC\\2008\\code\\
INCLUDE_PATH=/Users/jordanperr/.wine/drive_c/MCC18/h
INCLUDE_PATHW=C:\\MCC18\\h
ALL_TARGETS=adc.o gyro.o ifi_startup.o ifi_utilities.o main.o point_drive.o serial_ports.o user_routines.o user_routines_fast.o
INCLUDE_FILES=adc.h delays.h gyro.h ifi_aliases.h ifi_default.h ifi_utilities.h point_drive.h serial_ports.h user_routines.h


neutrino15 29-01-2008 15:45

Re: Makefile Errors
 
Ok, I think I am on to something. The makefile is not creating any .o object files to begin with. So it makes sense that CPP is having trouble. I will try and fix this tonite. Got a dentist's appointment in like, 15 minutes and the office is a good 30 minutes away, so gahh..


All times are GMT -5. The time now is 17:59.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi