gnupic: gplib command line syntax


Previous by date: 18 Jul 2004 00:03:51 +0100 gplink stack sections, Craig Franklin
Next by date: 18 Jul 2004 00:03:51 +0100 16f74, Fidel Gonzalez Aguilar
Previous in thread: 18 Jul 2004 00:03:51 +0100 Re: gplib command line syntax, Vangelis Rokas
Next in thread:

Subject: Re: gplib command line syntax
From: Craig Franklin ####@####.####
Date: 18 Jul 2004 00:03:51 +0100
Message-Id: <1090105500.2744.8.camel@r2d2>

Seems that I missed this message from last month.  gplib does allow you
to specify multiple objects in one command.  You could do this:

all: $(LIB)

$(LIB) : $(OBJS)
	glib -c $(LIB) $(OBJS)

Am I misunderstanding?

On Fri, 2004-06-04 at 08:03, Vangelis Rokas wrote:
> On Fri, 4 Jun 2004, George M. Gallant wrote:
> 
> > I tried to create a library with gplib inside a Makefile such as:
> >
> > all:       $(OBJS)
> >             gplib -c newlib.lib
> >              for f in $(OBJS); do         \
> >                  gplib -r newlib.lib $$f;   \
> >              done;
> >
> > This fails as the first gplib appears to want a member and the second
> > gplib fails
> > because the library dosn't exist. A workaround is to create the lib with
> > a valid
> > member and let the second gplib just overwrite it.
> 
> 	That's correct fo gplib. You can use the following workaround
> that works on linux:
> 
> --------------------------------------------------
> LIB=newlib.lib
> all: $(OBJS)
> 	for f in $(OBJS); do \
> 		if [ ! -e $(LIB) ]; then \
> 			gplib -c $(LIB) $$f; \
> 		else \
> 			gplib -r $(LIB) $$f; \
> 		fi ; \
> 		echo adding $$f; \
> 	done
> ---------------------------------------------------
> 
> Vangelis
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 


Previous by date: 18 Jul 2004 00:03:51 +0100 gplink stack sections, Craig Franklin
Next by date: 18 Jul 2004 00:03:51 +0100 16f74, Fidel Gonzalez Aguilar
Previous in thread: 18 Jul 2004 00:03:51 +0100 Re: gplib command line syntax, Vangelis Rokas
Next in thread:


Powered by ezmlm-browse 0.20.