From owner-freebsd-questions@FreeBSD.ORG Mon May 2 14:56:37 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD5EE16A4CE for ; Mon, 2 May 2005 14:56:37 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4949A43D2D for ; Mon, 2 May 2005 14:56:37 +0000 (GMT) (envelope-from jon.drews@gmail.com) Received: by zproxy.gmail.com with SMTP id 34so2358685nzf for ; Mon, 02 May 2005 07:56:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ucqw3h8hSdSk0HDPa8R1+X9cx/afL1lFC6m4pbbyAiFoL8I4F4e/dfEmq/PEQx+pHRfscVtgrkUBrSn8XaO7GGex8/wOd8Ch+XHz2l0WET8Q7okkT2piZHq19ywoKvlh7YnlOhGDohj0ixDYOqiCRaFd5oEUUKlkkY0gto8glyI= Received: by 10.36.56.8 with SMTP id e8mr536721nza; Mon, 02 May 2005 07:56:36 -0700 (PDT) Received: by 10.36.59.20 with HTTP; Mon, 2 May 2005 07:56:36 -0700 (PDT) Message-ID: <8cb27cbf050502075671aa177b@mail.gmail.com> Date: Mon, 2 May 2005 08:56:36 -0600 From: Jon Drews To: freebsd-questions Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Suffix rules in Makefile X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jon Drews List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2005 14:56:37 -0000 5.4-STABLE #0: Sun Apr 24 08:30:32 MDT 2005 Hi: I am having trouble with a .SUFFIXES based Makefile. If I use this Makefile containing .out: INCLUDES=3D -Wall -I/usr/local/include LINK=3D -L/usr/local/lib LIBS=3D -lgsl -lgslcblas -lm .SUFFIXES : .c .o .out .o.out: ${CC} ${LINK} -o $@ $< ${LIBS} .c.o: ${CC} ${INCLUDES} -c $< $ make complexPow.out cc -O2 -pipe -march=3Dpentiumpro complexPow.c -o complexPow.out complexPow.c:4:29: gsl/gsl_complex.h: No such file or directory it's not finding it's includes. However if I change the .out extension to .OUT it works: INCLUDES=3D -Wall -I/usr/local/include LINK=3D -L/usr/local/lib LIBS=3D -lgsl -lgslcblas -lm .SUFFIXES : .c .o .OUT .o.OUT: ${CC} ${LINK} -o $@ $< ${LIBS} .c.o: ${CC} ${INCLUDES} -c $< $ make complexPow.OUT cc -Wall -I/usr/local/include -c complexPow.c cc -L/usr/local/lib -o complexPow.OUT complexPow.o -lgsl -lgslcblas -lm Why does the .SUFFIXES definition for .out, in the first Makefile not work? I looked in /usr/share/mk/sys.mk and did not see a definition for .o.out either. --=20 Kind regards, Jonathan