Subject: new build/old private makefile prob
To: None <>
From: Patrick Welche <>
List: current-users
Date: 11/18/2001 16:55:09
I used to have a working makefile containing:

pngtest.o:      pngtest.c
        ${CC} -c ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}

pngtest:        pngtest.o libpng.a
        ${CC} ${.ALLSRC} -o${.TARGET} -lz -lm

but now I get:

/usr/src/tools/obj.i386/tools.NetBSD-1.5Y-i386/bin/i386--netbsdelf-gcc pngtest.o libpng.a -opngtest -lz -lm
/usr/src/tools/obj.i386/tools.NetBSD-1.5Y-i386/i386--netbsdelf/bin/ld: cannot open crt0.o: No such file or directory

so there is a slight change of behaviour... Any idea what the official way
to do this is? (Apart from creating a new directory to put those bits in and
using in it?)