[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
gplib command line syntax
From: "George M. Gallant" ####@####.#### Date: 4 Jun 2004 13:30:58 +0100 Message-Id: <40C06B63.5000402@comcast.net> 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. I am using "gplib-0.12.0 alpha" on Linux. George | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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: ####@####.#### > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |