[Top][All Lists]

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

RE: Convert nmake Makefile to GNU Makefile

From: Achugatla, Vijay K. (LNG-CON)
Subject: RE: Convert nmake Makefile to GNU Makefile
Date: Thu, 26 Feb 2009 14:22:03 -0500



I am converting a nmake Makefile to GNU Makefile


My nmake Makefile looks something like



.SOURCE.h : ../common

.SOURCE : ../common \




COMMONSRC = $(*.VIEW:D:X=common:L=*.C)

RWCSTRSRC = $(*.VIEW:D:X=rwcstr:L=*.C)



common 2 :sharedlibrary: \


rwcstr 1 :sharedlibrary: $(RWCSTRSRC)


I have written the GNU Makefiles something like to include the auto dependency list generation in this file


MAKEDEPEND = gcc -M $(CFLAGS) -o $*.d $<


common 2 :sharedlibrary: \


rwcstr 1 :sharedlibrary: $(RWCSTRSRC)



cp $*.d $*.P; \

sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \

    -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \

rm -f $*.d



Does this make any sense? Please suggest me if this is wrong






-----Original Message-----
From: Tom Browder [mailto:address@hidden
Sent: Thursday, February 26, 2009 7:58 AM
To: Achugatla, Vijay K. (LNG-CON)
Cc: address@hidden
Subject: Re: Convert nmake Makefile to GNU Makefile


On Wed, Feb 25, 2009 at 10:07 PM, Achugatla, Vijay K. (LNG-CON)

<address@hidden> wrote:

> I am currently using nmake (nmake3.6) in Solaris to build the source. I have

> moved the source to Linux and need to build it using gmake (GNU Make 3.80)


> Please let know if there is any document with instructions or guidelines

> available for converting name Makefiles to GNU Makefiles


Hi, Vijay.  The make manual is available online here:


This section, discussing GNU make's missing features may help in your



I would start off by doing whatever adjustments are necessary from

your reading of the missing features section, and then try it and make

any corrections from there.


By the way, I recommend upgrading to the latest version: 3.81.


Good luck.



reply via email to

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