www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/07/20:47:44

From: ed toivanen <e_toivanen AT bc DOT sympatico DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: I run make, but get no target, or no rule for target test1.
Date: Thu, 07 May 1998 17:39:00 -0700
Organization: BCTEL Advanced Communications
Lines: 26
Message-ID: <35525424.F6809612@bc.sympatico.ca>
NNTP-Posting-Host: m84.bctel.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I am running make 3.76.1, and wrote my first makefile, test1.mak and
test1.mk.  When I run make, or make test1, I get the above error
messages.  make clean also doesn't work. I copied the makefile from the
faq, with appropriate changes, but can't figure out the problem.
Normally I just run gpp*.cpp, but am trying to expand my horizons by
using make.

I am using win95, 32MB of ram and several hundred MB disk space.

------------------------test1.mak------------------------
objects = main.o cgi.o mem.o

test1 : $(objects)
       gpp -o test1 $(objects)

main.o : main.cpp main.h
         gpp -c main.cpp
cgi.o : cgi.cpp cgi.h
        gpp -c cgi.cpp
mem.o : mem.cpp mem.h
        gpp -c mem.c
clean : del/y test1 $(objects)
----------------------------end file----------------------------------



- Raw text -


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