gnupic: gplib command line syntax


Previous by date: 4 Jun 2004 13:59:35 +0100 gplib command line syntax, George M. Gallant
Next by date: 4 Jun 2004 13:59:35 +0100 gpicp-0.0.7 beta code update, Jeff
Previous in thread: 4 Jun 2004 13:59:35 +0100 gplib command line syntax, George M. Gallant
Next in thread: 4 Jun 2004 13:59:35 +0100 Re: gplib command line syntax, Craig Franklin

Subject: Re: gplib command line syntax
From: Vangelis Rokas ####@####.####
Date: 4 Jun 2004 13:59:35 +0100
Message-Id: <Pine.LNX.4.58.0406041600210.2783@carmelle>

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


Previous by date: 4 Jun 2004 13:59:35 +0100 gplib command line syntax, George M. Gallant
Next by date: 4 Jun 2004 13:59:35 +0100 gpicp-0.0.7 beta code update, Jeff
Previous in thread: 4 Jun 2004 13:59:35 +0100 gplib command line syntax, George M. Gallant
Next in thread: 4 Jun 2004 13:59:35 +0100 Re: gplib command line syntax, Craig Franklin


Powered by ezmlm-browse 0.20.