Problem with HOWTO: Compile and link with the ROOT lib

Hi,
this must be some simple pilot error: I’m trying to compile a root app, from the HOWTO:

root.cern.ch/root/HowtoLink.html

I get:

w-jie>> pwd
/bld/kwd1/root/3.10/root/test
w-jie>> make Event
make: Fatal error in reader: Makefile, line 19: Unexpected end of line seen
w-jie>1>

I’m on Solaris 2.8. I installed from binary, start of Makefile is:

Makefile for the ROOT test programs.

This Makefile shows nicely how to compile and link applications

using the ROOT libraries on all supported platforms.

Copyright © 2000 Rene Brun and Fons Rademakers

Author: Fons Rademakers, 29/2/2000

ARCH = solarisCC5

CXX =
ObjSuf = o
SrcSuf = cxx
ExeSuf =
DllSuf = so
OutPutOpt = -o

ROOTCFLAGS := $(shell root-config --cflags)
ROOTLIBS := $(shell root-config --libs) <----- this is line 19
ROOTGLIBS := $(shell root-config --glibs)

tia
Ken

well gmake seems to work:

w-jie>> pwd
/bld/kwd1/root/3.10/root/test
w-jie>> make Event
make: Fatal error in reader: Makefile, line 19: Unexpected end of line seen
w-jie>1> gmake Event
CC -O -KPIC -I/bld/kwd1/root/3.10/root/include -c Event.cxx
CC -O -KPIC -I/bld/kwd1/root/3.10/root/include -c EventDict.cxx
CC -G -O Event.o EventDict.o -o libEvent.so
libEvent.so done
CC -O -KPIC -I/bld/kwd1/root/3.10/root/include -c MainEvent.cxx
CC -O MainEvent.o libEvent.so -L/bld/kwd1/root/3.10/root/lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lm -ldl
-lnsl -lsocket
-o Event
Event done
w-jie>>

Yes, on Solaris, you must use gmake, not make.

Rene