www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/22/09:36:27

Message-ID: <371F261B.2267AB76@cfwb.be>
Date: Thu, 22 Apr 1999 15:37:31 +0200
From: dominique DOT cretel AT cfwb DOT be (CRETEL Dominique)
X-Mailer: Mozilla 4.5 [en] (WinNT; I)
X-Accept-Language: fr,fr-BE,en
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
CC: djgpp AT delorie DOT com
Subject: Re: Help for Makefile
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990422154027 DOT 3195A-100000 AT is>
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.
--------------ED70CBEE0C5D769BD16930D1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Eli Zaretskii wrote:

> They are both wrong.
>
> (And, btw, you didn't have to define those rules at all, since GNU Make
> already has these rules in its internal database.)
>
> The error happens because Make tries to execute the library.  You need to
> find out why does it try to do that.  I don't have your full Makefile
> anymore to look into it.

Here is the Makefile, but I don't understand why make want to execute the built
library!!!

Thanks,
Dominique

--------------ED70CBEE0C5D769BD16930D1
Content-Type: text/plain; charset=us-ascii;
 name="Makefile"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Makefile"

#
# DJGPP (DOS port of gcc) Makefile for SFL package.
#

CC       = gcc
CPPFLAGS =
CFLAGS   = -s -O2 -Wall -pedantic
AR       = ar
RANLIb   = ranlib
RM       = del

SRCS  = sflbits.c sflhttp.c sflcomp.c sflcons.c sflcryp.c sflcvbs.c sflcvdp.c sflcvds.c sflcvns.c sflcvsb.c sflcvsd.c sflcvsn.c sflcvst.c sflcvtp.c sflcvts.c sflconv.c sfldate.c sfldir.c sflenv.c sflexdr.c sflfile.c sflfind.c sflini.c sfllang.c sfllbuf.c sfllist.c sflmail.c sflmath.c sflmem.c sflmesg.c sflmime.c sflnode.c sflproc.c sflslot.c sflsock.c sflstr.c sflsymb.c sflsyst.c sfltok.c sfltree.c sfltron.c sfluid.c sflxml.c sflxmll.c
OBJS  = $(SRCS:%.c=%.o)
BIB   = libsfl.a
ELTS  = $(SRCS:%.c=$(BIB)(%.o))

all: $(BIB)

clean:
	$(RM) *.a
	$(RM) *.o

%.o: %.c
	$(CC) -c $@ $(CPPFLAGS) $(CFLAGS) $<

(%.o): %.c
	$(CC) -c $(CPPFLAGS) $(CFLAGS) $<
	$(AR) cr $@ $%
	$(RM) $%

$(BIB): $(ELTS)
	$(RANLIB) $@


--------------ED70CBEE0C5D769BD16930D1--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019