ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/20/03:41:31

From: Dominique =?iso-8859-1?Q?Cr=E9tel?= <dominique DOT cretel AT cfwb DOT be>
Newsgroups: comp.os.msdos.djgpp
Subject: Help for Makefile
Date: Tue, 20 Apr 1999 10:09:35 +0200
Organization: BELNET (SSTC/DWTC)
Lines: 60
Message-ID: <371C363E.CB1FF2DC@cfwb.be>
NNTP-Posting-Host: usrpc42.bxl.204rr.swi.cfwb.be
Mime-Version: 1.0
X-Trace: naxos.belnet.be 924595674 12189 193.190.100.81 (20 Apr 1999 08:07:54 GMT)
X-Complaints-To: abuse AT belnet DOT be
NNTP-Posting-Date: 20 Apr 1999 08:07:54 GMT
X-Mailer: Mozilla 4.5 [en] (WinNT; I)
X-Accept-Language: fr,fr-BE,en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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

Hi all,

I want to use a Makefile to build a library.
I want to use implicit rules.
So I wrote this Makefile (see join file).
But this one do not work!!!

Please, is there any body wha can help me?

Thanks,
Dominique.

--------------10F36A414F23A94A46221652
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) $@


--------------10F36A414F23A94A46221652--

- Raw text -


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