39 lines
1.1 KiB
Text
39 lines
1.1 KiB
Text
$NetBSD: patch-af,v 1.8 2009/11/26 00:10:42 joerg Exp $
|
|
|
|
--- pico/makefile.osx.orig 2002-09-20 14:23:11.000000000 -0400
|
|
+++ pico/makefile.osx
|
|
@@ -38,10 +38,6 @@ STDCFLAGS= -Dbsd -DJOB_CONTROL
|
|
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 \
|
|
@@ -55,17 +51,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
|
|
+ $(LDCC) $(CFLAGS) main.o libpico.la $(LIBS) -o pico
|
|
|
|
pilot: pilot.o
|
|
- $(CC) $(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
|