pkgsrc/editors/pico/patches/patch-ag
2006-01-12 21:00:52 +00:00

49 lines
1.3 KiB
Text

$NetBSD: patch-ag,v 1.4 2006/01/12 21:00:52 adam 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 6:0
clean:
rm -f *.a *.o *~ pico_os.c os.h pico pilot