Hi,
I am converting a nmake Makefile to GNU Makefile
My nmake Makefile looks something like
_SVID_GETTOD==0
.SOURCE.h : ../common
.SOURCE : ../common \
../rwcstr
CFLAGS += -D
COMMONSRC = $(*.VIEW:D:X=common:L=*.C)
RWCSTRSRC = $(*.VIEW:D:X=rwcstr:L=*.C)
all:
common 2 :sharedlibrary: \
$(COMMONSRC)
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 $<
all:
common 2 :sharedlibrary: \
$(COMMONSRC)
rwcstr 1 :sharedlibrary: $(RWCSTRSRC)
@$(MAKEDEPEND); \
cp $*.d $*.P; \
sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
-e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \
rm -f $*.d
$(COMMONSRC) $(RWCSTRSRC) -o $@ $<
Does this make any sense? Please suggest me if this is wrong
Thanks,
Vijay
-----Original Message-----
From: Tom Browder [mailto:[email protected]]
Sent: Thursday, February 26, 2009 7:58 AM
To: Achugatla, Vijay K. (LNG-CON)
Cc: [email protected]
Subject: Re: Convert nmake Makefile to GNU Makefile
On Wed, Feb 25, 2009 at 10:07 PM, Achugatla, Vijay K. (LNG-CON)
<[email protected]> 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:
http://www.gnu.org/software/make/manual/make.html#Top
This section, discussing GNU make's missing features may help in your
conversion:
http://www.gnu.org/software/make/manual/make.html#Missing
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.
-Tom
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make