Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 1998 03:13:31 +0200
From:      Palle Girgensohn <girgen@partitur.se>
To:        freebsd-questions@FreeBSD.ORG
Subject:   FreeBSD make (or Makefile) on Solaris?
Message-ID:  <35E6043B.39E9F94F@partitur.se>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35E6043B.39E9F94F>