Mail Archives: djgpp/1999/04/22/09:36:27
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 -