www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/01/27/05:30:32

From: "Stephen Wade" <maitrek AT austarmetro DOT com DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Going insane with Make
Lines: 43
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
X-Original-NNTP-Posting-Host: 203.220.99.86
Message-ID: <3e350912$1@news.comindico.com.au>
X-Original-Trace: 27 Jan 2003 21:25:22 +1000, 203.220.99.86
Date: Mon, 27 Jan 2003 10:25:30 GMT
NNTP-Posting-Host: 203.194.27.1
X-Complaints-To: abuse AT comindico DOT com DOT au
X-Trace: news.optus.net.au 1043663130 203.194.27.1 (Mon, 27 Jan 2003 21:25:30 EST)
NNTP-Posting-Date: Mon, 27 Jan 2003 21:25:30 EST
Organization: Comindico Australia - reports relating to abuse should be sent to abuse AT comindico DOT com DOT au
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Okay, this should be a really straightforward problem, it's likely something
massively simple that I've missed - but I'm obviously too dumb to figure it
out myself so here goes.

This is my frist attempt at using a makefile, and every time i run "make"
from the MS-DOS prompt in windows 98 in a directory which contains this
makefile
(called 'makefile')
#------------------
vpath %.c ..\src
vpath %.h ..\src

CC=gcc.exe

vexle : vexle.o vbe3.o mouse.o
 cc -o vexle vexle.o vbe3.o mouse.o

vexle.o : vexle.c vexle.h
 cc -c vexle.c

vbe3.o : vbe3.c vbe3.h
 cc -c vbe3.c

mouse.o : mouse.c mouse.h
 cc -c mouse.c

.PHONY : clean

clean :
 del *.o
#------------

I get the output
"make.exe: *** No targets specified and no makefile found.  Stop."

Why is it saying this? As far as I can tell I have a valid target, and the
makefile is *definitely* there (I'm not that dumb - or am i :) ) any ideas?
I'm using latest version of DJGPP to compile and make.exe ver. 3.791

When i tell it to spew output it just seems to whinge alot about recursion
trying to find makefiles of various names, and that's it.


- Raw text -


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