delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/02/02/14:46:36

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Sat, 02 Feb 2008 13:42:52 -0600
From: "miner_tom" <tom_nospam AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Newbe: djgpp does not see "make" macros
Date: Sun, 3 Feb 2008 11:41:39 -0800
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Message-ID: <1qCdnVDGo5QgWjnanZ2dnUVZ_veinZ2d@giganews.com>
Lines: 65
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-oi67jcc+rDWVVf88yjlHgw7FVO/w/h5POFgp0tE6eGjcIXGnLipWc3n8SkU8iWdn+8lTXwqnUPMPMQ9!VBUucRu3lSk1GDlCIr1jwCDBHSBKKY88MIDVm/CDIgEl3RZni0cfW0hOYF9L6yueOouNoweCBoE=
X-Complaints-To: abuse AT giganews DOT com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.37
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

I hope that this question is not too elementary to ask.

I recently installed djgpp in order to compile some C programs that were 
made to be compiled with djgpp from a MAKE file. I have the make file, which 
is large, but can not even run the test program in the make file, that is 
only a couple of lines. For example a small make file is as follows:

HELLOSRC = hello.c hello2.c hello3.c

HELLOO = ${HELLOSRC:.c=.o}

hello.exe: ${HELLOO}

${LINK} $@ ${HELLOO}



I called this small program  "make_hello". When I ran it by invoking "make 
make_hello" I got

"make.exe: *** No rule to make target 'hello.o', needed by 'hello.exe'. 
Stop."



However, if I type the following in at the command line:

"gcc hello.c hello2.c hello3.c -o hello.exe -lm"



the file is compiled, linked and the .exe is created.



I expect that this has something to do with the way that the MAKE macros are 
not being created/assigned and the compiler can not read tham. Does this 
also relate to environmental variables? I am running on a new PC with WinXp 
SP2.



Suggestions are welcome.

Thank You

Tom

tom_cip_11551 AT hotmail DOT com














- Raw text -


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