$NetBSD: patch-ae,v 1.10 2009/11/26 00:10:42 joerg Exp $ --- pico/makefile.sol.orig Tue Oct 23 22:19:09 2001 +++ pico/makefile.sol Fri Dec 14 19:11:59 2001 @@ -32,25 +32,13 @@ RM= rm -f LN= ln -s MAKE= make -OPTIMIZE= # -O +OPTIMIZE= -O2 PROFILE= # -pg -DEBUG= -g -DDEBUG - -# LDCC= /usr/bin/cc -# If you don't have /usr/bin/cc (our Solaris 2.2 doesn't seem to have it, -# it only has /usr/ucb/cc) then change LDCC to the following line and -# give that a try. This is still using the Solaris compiler but -# leaving out the UCB compatibility includes and libraries. -LDCC= ./cc5.sol +DEBUG= STDCFLAGS= -Dconst= -Dsv4 -DPOSIX -DJOB_CONTROL -DMOUSE CFLAGS= $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS) -# switches for library building -LIBCMD= ar -LIBARGS= ru -RANLIB= true - LIBS= $(EXTRALDFLAGS) -ltermlib OFILES= attach.o basic.o bind.o browse.o buffer.o \ @@ -64,17 +52,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 - $(LDCC) $(CFLAGS) main.o libpico.a $(LIBS) -o pico + $(LDCC) $(CFLAGS) main.o libpico.la $(LIBS) -o pico pilot: pilot.o - $(LDCC) $(CFLAGS) pilot.o libpico.a $(LIBS) -o pilot + $(LDCC) $(CFLAGS) pilot.o libpico.la $(LIBS) -o pilot -libpico.a: $& $(OFILES) - $(LIBCMD) $(LIBARGS) libpico.a $(OFILES) - $(RANLIB) libpico.a +libpico.la: $(OFILES) + $(LDCC) -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