a make file question

P

poison.summer

Hello I am new on makefile writing for C compilation
I have the header files in two different directories
How can I define them?
My current Makefile is
HEADERPATH = /usr/local/mysql/include

CFLAGS = -O -I$(SRCPATH) -I$(HEADERPATH)

How can I add a new header directory?

Thanks a lot!
 
A

Artie Gold

Hello I am new on makefile writing for C compilation
I have the header files in two different directories
How can I define them?
My current Makefile is
HEADERPATH = /usr/local/mysql/include

CFLAGS = -O -I$(SRCPATH) -I$(HEADERPATH)

How can I add a new header directory?

Thanks a lot!
Step 1 would be to ask in a forum specific to your platform. [Hint:
makefiles are not topical here, where we discuss the ISO standard C
*language*.]

HTH,
--ag
 
J

Jens.Toerring

Artie Gold said:
Hello I am new on makefile writing for C compilation
I have the header files in two different directories
How can I define them?
My current Makefile is
HEADERPATH = /usr/local/mysql/include

CFLAGS = -O -I$(SRCPATH) -I$(HEADERPATH)

How can I add a new header directory?
Step 1 would be to ask in a forum specific to your platform. [Hint:
makefiles are not topical here, where we discuss the ISO standard C
*language*.]

Try e.g. comp.unix.programmer where questions about make regularly
are asked and often also get answered.
Regards, Jens
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,439
Latest member
shasuze

Latest Threads

Top