Mail Archives: djgpp/2001/03/25/11:48:00
From: | "Brian Christiansen" <brianc23454 AT earthlink DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Trying to figure out makefiles
|
Lines: | 33
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400
|
Message-ID: | <0apv6.10280$P4.869113@newsread1.prod.itd.earthlink.net>
|
Date: | Sun, 25 Mar 2001 16:38:20 GMT
|
NNTP-Posting-Host: | 168.191.216.28
|
X-Complaints-To: | abuse AT earthlink DOT net
|
X-Trace: | newsread1.prod.itd.earthlink.net 985538300 168.191.216.28 (Sun, 25 Mar 2001 08:38:20 PST)
|
NNTP-Posting-Date: | Sun, 25 Mar 2001 08:38:20 PST
|
Organization: | EarthLink Inc. -- http://www.EarthLink.net
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
I have 2 .cpp files, one called testmain13.cpp, and the other called
video.cpp. If I work from rhide, and put the two together in a project,
they work just as expected. However, I am having trouble with coming up
with a makefile to do the same thing.
Right now, my makefile is called proj13.mak and looks like:
proj13.exe: video.o testmain13.o
gcc -o proj13.exe video.o testmain13.o
video.o: video.cpp
gcc -c testmain13.cpp
testmain13.o
gcc -c testmain13.cpp
(it doesn't quite look like it, at least in my newsreader, but it is a
"tab", not just a couple of spaces before the lines call gcc)
when I cd to the directory that this file is in (testmain13.cpp and
video.cpp are in the same directory) and type "make proj13.exe", I get the
response:
make.exe: *** No rule to make target `proj13.exe'. Stop.
When I type either "make video.o" or "make testmain13.o", the correponding
line in the makefile gets executed just fine.
When I individually type the lines, the lines to compile testmain13 and
video work fine, but the line to compile the final execuatble produces a
bunch of errors.
Brian Christiansen
- Raw text -