help-make
[Top][All Lists]
Advanced

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

RE: need help with the Makefile


From: ravi_murdeshwar
Subject: RE: need help with the Makefile
Date: Thu, 8 Sep 2005 12:19:15 -0600

Hi all.

Did anybody got the chance to take a look at following request ?

 

 

Thanks ..

--

Raviraj Murdeshwar.

408.553.4318


From: address@hidden [mailto:address@hidden On Behalf Of address@hidden
Sent: Wednesday, September 07, 2005 12:14 PM
To: address@hidden
Subject: need help with the Makefile

 

Hi..

I am working on a project to define the make system. Currently customer has ~50 shell scripts for different deliverables which does copying the files around and then in certain cases modifying them(ah…) and the compiling with the different CFLAGS. Some scripts are platform specific.

 

I need to convert them to a Make system. I am familiar with the simple makefile structure and I am planning to use gnu-make.

I have basic makefile structure in place.  The master makefile will include ‘common.mk’ (which has all the required variables) and ‘rules.mk’ (which has general rules for compile and link).

 

I have couple of questions as follows:

 

  1. in common.mk, how do I set variables for different platforms and different OS versions(for the same platform)
  2. is there any way to set target specific variables(CFLAGS/LDFLAGS/INCLUDE) instead of passing them at the command line to $(MAKE). As CFLAGS list is long.

 

targetx:

      CFLAGS += XX

      LDFLAGS += XX

      $(MAKE) –C xdir $(CFLAGS)

 

Targety:

      CFLAGS += YY

      LDFLAGS += YY

      $(MAKE) –C ydir $(CFLAGS)

 

           

 

Thanks in advance..

--

Raviraj Murdeshwar.

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]