blob: 059c2023dafe231ec9ca06cba6ada7a100af6ed6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
$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
|