|
From: | Achugatla, Vijay K. (LNG-CON) |
Subject: | RE: Convert nmake Makefile to GNU Makefile |
Date: | Thu, 26 Feb 2009 14:22:03 -0500 |
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----- On Wed, Feb 25, 2009 at 10:07 PM, <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:
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 |
[Prev in Thread] | Current Thread | [Next in Thread] |