delorie.com/archives/browse.cgi | search |
From: | "Nicolas.GASNIER" <Nicolas DOT GASNIER AT wanadoo DOT fr> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: makefile |
Date: | Sat, 12 Jun 1999 14:54:42 +0200 |
Organization: | Wanadoo, l'internet avec France Telecom |
Lines: | 24 |
Message-ID: | <7jtkvu$8rr$1@wanadoo.fr> |
References: | <7jpua1$11ci$1 AT newssvr01-int DOT news DOT prodigy DOT com> |
NNTP-Posting-Host: | tntorl13-125.abo.wanadoo.fr |
X-Trace: | wanadoo.fr 929191742 9083 164.138.23.125 (12 Jun 1999 12:49:02 GMT) |
X-Complaints-To: | abuse AT wanadoo DOT fr |
NNTP-Posting-Date: | 12 Jun 1999 12:49:02 GMT |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.5 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Try : CC = gcc CFLAGS = -g -O2 OBJS = main.o foo.o libmain.a : $(OBJS) ar rs libmain.a $(OBJS) Rules to make targets *.o are implicit with the use of the OBJS variable. (i.e make will assume : main.o:main.c $(CC) $(CFLGAS) main.c -o main.o foo.o:foo.c $(CC) $(CFLGAS) foo.c -o foo.o) Blade. +---- | mailto:nicolas DOT gasnier AT wanadoo DOT fr | --------+
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |