From owner-freebsd-questions Thu Aug 27 18:15:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA14793 for freebsd-questions-outgoing; Thu, 27 Aug 1998 18:15:34 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from maild.telia.com (maild.telia.com [194.22.190.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA14765 for ; Thu, 27 Aug 1998 18:15:16 -0700 (PDT) (envelope-from girgen@partitur.se) Received: from d1o29.telia.com (root@d1o29.telia.com [194.236.214.241]) by maild.telia.com (8.8.8/8.8.8) with ESMTP id DAA11776; Fri, 28 Aug 1998 03:14:03 +0200 (CEST) Received: from partitur.se (t4o29p111.telia.com [194.236.215.231]) by d1o29.telia.com (8.8.8/8.8.5) with ESMTP id DAA25252; Fri, 28 Aug 1998 03:13:57 +0200 (MET DST) Message-ID: <35E6043B.39E9F94F@partitur.se> Date: Fri, 28 Aug 1998 03:13:31 +0200 From: Palle Girgensohn Organization: Partitur X-Mailer: Mozilla 4.5b1 [en] (X11; I; FreeBSD 2.2.6-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Subject: FreeBSD make (or Makefile) on Solaris? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello all! I need to get a makefile written in the spirit of FreeBSD make to work on Solaris. I have goen as far as to try to compile the FreeBSD make on solaris with gcc (2.8.1), but I am not sure how to handle err.h. And still, it is probably easier to rewrite the makefile for gmake or another make flavor that Solaris has. I have tried /usr/ccs/bin/make /usr/xpg4/bin/make and gnu make, but to no avail. The structures that give me problem look like this: CONFIGFILE?=/usr/opt/workdir/ppbuild.conf all: config build .MAIN: all <<<<<<<<<<< Here .if exists(${CONFIGFILE}) .include "${CONFIGFILE}" .endif .if exists(subdirs.in) SUBDIRS!= cat subdirs.in .endif ...etc... This is what happens: /usr/xpg4/bin/make -DD (or /usr/ccs/bin/make) ...snip... >>>>>>>>>>>>>>>> End of makefile /usr/share/lib/make/make.rules >>>>>>>>>>>>>>>> Reading makefile Makefile CONFIGFILE? = /opt/workdir/ppbuild.conf all: config build .MAIN: all make: Fatal error in reader: Makefile, line 12: Unexpected end of line seen Very similar with gnu make. I must admin I'm not quite sure what the makefile is doing all the time, makefiles are not speciality... :-} It should traverse a tree and compile everything and do some preprocessing. If someone can help me with a hint, I'd be grateful. Regards, Palle Solaris version,for what it matters: SunOS solist 5.6 Generic_105181-06 sun4u sparc SUNW,Ultra-1 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message