$NetBSD: patch-ag,v 1.1 2003/06/18 00:58:12 jschauma Exp $ --- pico/makefile.lnx.orig Tue Oct 23 15:19:06 2001 +++ pico/makefile.lnx @@ -36,18 +36,14 @@ RM= rm -f LN= ln -s MAKE= make -OPTIMIZE= # -O +OPTIMIZE= -O2 PROFILE= # -pg -DEBUG= -g -DDEBUG +DEBUG= -g STDCFLAGS= -Dlnx -DJOB_CONTROL -DPOSIX -DMOUSE CFLAGS= $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS) # switches for library building -LIBCMD= ar -LIBARGS= ru -RANLIB= ranlib - LIBS= $(EXTRALDFLAGS) -lncurses OFILES= attach.o basic.o bind.o browse.o buffer.o \ @@ -61,17 +57,17 @@ HFILES= headers.h estruct.h edef.h efun # 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 4:0 clean: rm -f *.a *.o *~ pico_os.c os.h pico pilot