[coldfire-gnu-discuss] GCC -I option seems to not work !?

Claude Sylvain csylvain at electro-technica.com
Sun Dec 10 03:35:51 UTC 2006


Hello Daniel,

 >
 > Daniel Jacobowitz wrote:
 >
 > I don't know, but we need more information to find out.  What does the
 > directory structure look like?  What's the complete command line you
 > are using to invoke GCC?  And are you running it from cmd.exe or from a
 > Cygwin shell?
 >


Here is the directory structure:

				     -----
project
     \---obj
     \---out
     \---src
         \---drivers
         |   \---ethernet
         \---startup
         \---support
				     -----


I use a Makefile to build the project.
The Makefile is located in "project/" folder, and executed from that folder.
Here is some revealing part of that Makefile:

				     -----
CC = m68k-elf-gcc

CFLAGS_COMMON = -mcpu=52235 -Tm52235evb-ram-hosted.ld -I./drivers/ 
-I./support/ -g -o

PSRC		= ./src/
PSRC_DRV	= ./src/drivers/
POBJ		= ./obj/
POUT		= ./out/

$(POBJ)main.o:								\
	$(PSRC)main.c $(PSRC)main.h $(PSRC)project.h
	$(CC) -c $(CFLAGS_COMMON) $(POBJ)main.o $(PSRC)main.c

				     -----

I run the Makefile from a cmd.exe black box, and typing the following command:
	cs-make



Claude.




More information about the coldfire-gnu-discuss mailing list