Operating System - HP-UX
1752810 Members
5839 Online
108789 Solutions
New Discussion юеВ

Re: General rules of make

 
SOLVED
Go to solution
Vibhor Kumar Agarwal
Esteemed Contributor

General rules of make

Hi,

Make has some general rules and macros specified.

Can somebody help me to find out the location of that file.
Vibhor Kumar Agarwal
6 REPLIES 6
Biswajit Tripathy
Honored Contributor

Re: General rules of make

# man 1 make
- Biswajit
:-)
Vibhor Kumar Agarwal
Esteemed Contributor

Re: General rules of make

Hey,

I know how to write makefiles.

In Solaris there is a general makefile.rules which contains predefined and inbuild rules.

I was just trying to search such a file in HP.
Till now i am unsuccessful.
Vibhor Kumar Agarwal
Stephen Keane
Honored Contributor

Re: General rules of make

Vibhor,

try

# make -p

which will list the built-in rules.
Vibhor Kumar Agarwal
Esteemed Contributor

Re: General rules of make

Gotcha,

But somehow my rules are conflicting with it.
Sometimes it creates a problem.

Thats why i was trying to find the location so that i can change it.
With make -p i am only able to see them not change.
Vibhor Kumar Agarwal
Biswajit Tripathy
Honored Contributor
Solution

Re: General rules of make

Vibhor wrote:
> Hey,
> I know how to write makefiles.

Sorry, I did not mean to say you don't. The
manpages for make has a section on
"Built-in Macros" and I thought that's what
you want.

- Biswajit
:-)
Vibhor Kumar Agarwal
Esteemed Contributor

Re: General rules of make

Don't be,

I was just joking.

Thanks I got the location, and partially identified my problem.
Rest you can solve.

Does HP support rules like
%.o:%.cpp
This works in Solaris but on HP it tries to search for CC, it checked the general rules and it showed the compiler as CC.

Should I change it, but the problem is other form of rule
.o.cpp
works.

Any help
Vibhor Kumar Agarwal