delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/02/06/14:16:31

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Tomasz =?UTF-8?B?WmJyb8W8ZWs=?= <scianagoryczy AT wp DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Newbe: djgpp does not see "make" macros
Date: Wed, 06 Feb 2008 20:04:56 +0100
Organization: Onet.pl
Lines: 6
Message-ID: <fod04l$h0r$1@news.onet.pl>
References: <1qCdnVDGo5QgWjnanZ2dnUVZ_veinZ2d AT giganews DOT com>
NNTP-Posting-Host: unregister019009144195.c9.msk.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1202324437 17435 195.144.9.19 (6 Feb 2008 19:00:37 GMT)
X-Complaints-To: usenet AT news DOT onet DOT pl
NNTP-Posting-Date: Wed, 6 Feb 2008 19:00:37 +0000 (UTC)
X-Sender: 5kBp3uke6SNK7Iok0CQ7D+tf2F7Zp6gWLVAhLsCW5ev1Xh5aeedsGg==
User-Agent: KNode/0.10.2
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I'm not expert but I would write your makefile like this:

 HELLOSRC = hello.c hello2.c hello3.c
 hello.exe: ${HELLOSRC:.c=.o}
         $(CC) $^ -o $@ -lm

- Raw text -


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