$NetBSD: patch-aa,v 1.16 2006/01/12 21:00:52 adam Exp $ --- pico/makefile.neb.orig 2001-10-24 00:19:07.000000000 +0200 +++ pico/makefile.neb 2003-07-28 14:04:16.000000000 +0200 @@ -32,16 +32,12 @@ MAKE= make OPTIMIZE= # -O PROFILE= # -pg -DEBUG= -g -DDEBUG +DEBUG= # -g -DDEBUG STDCFLAGS= -Dneb -DJOB_CONTROL -DPOSIX -DMOUSE CFLAGS= $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS) # switches for library building -LIBCMD= ar -LIBARGS= ru -RANLIB= ranlib - LIBS= $(EXTRALDFLAGS) -ltermcap OFILES= attach.o basic.o bind.o browse.o buffer.o \ @@ -55,17 +51,17 @@ # dependencies for the Unix versions of pico and libpico.a # all: pico pilot -pico pilot: libpico.a +pico pilot: libpico.la pico: main.o - $(CC) $(CFLAGS) main.o libpico.a $(LIBS) -o pico + $(CC) $(CFLAGS) main.o libpico.la $(LIBS) -o pico pilot: pilot.o - $(CC) $(CFLAGS) pilot.o libpico.a $(LIBS) -o pilot + $(CC) $(CFLAGS) pilot.o libpico.la $(LIBS) -o pilot -libpico.a: $(OFILES) - $(LIBCMD) $(LIBARGS) libpico.a $(OFILES) - $(RANLIB) libpico.a +libpico.la: $(OFILES) + $(CC) -o libpico.la $(OFILES:.o=.lo) -rpath $(PREFIX)/lib \ + -version-info 6:0 clean: rm -f *.a *.o *~ pico_os.c os.h pico pilot