Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: coldfire-gnu-discuss@xxxxxxxxxxxxxxxx
  • Subject: Re: Re: [coldfire-gnu-discuss] GCC -I option seems to not work !?
  • From: Claude Sylvain <csylvain@xxxxxxxxxxxxxxxxxxxx>
  • Date: Sat, 09 Dec 2006 22:35:51 -0500

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.