-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.soc
90 lines (74 loc) · 2.3 KB
/
makefile.soc
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# $Id: makefile.soc 13589 2004-04-08 16:49:39Z hubert $
#
# Michael Seibel
# Networks and Distributed Computing
# Computing and Communications
# University of Washington
# Administration Builiding, AG-44
# Seattle, Washington, 98195, USA
# Internet: [email protected]
#
# Please address all bugs and comments to "[email protected]"
#
#
# Pine and Pico are registered trademarks of the University of Washington.
# No commercial use of these trademarks may be made without prior written
# permission of the University of Washington.
#
# Pine, Pico, and Pilot software and its included text are Copyright
# 1989-1998 by the University of Washington.
#
# The full text of our legal notices is contained in the file called
# CPYRIGHT, included with this distribution.
#
#
# Makefile for Sun Solaris version of the PINE composer library and
# stand-alone editor pico.
#
# [Port courtesy of Marc Unangst <[email protected]> - mss, 921020]
#
RM= rm -f
LN= ln -s
MAKE= make
OPTIMIZE= # -O
PROFILE= # -pg
DEBUG= -g -DDEBUG
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 \
composer.o display.o file.o fileio.o line.o pico_os.o \
pico.o random.o region.o search.o \
window.o word.o
HFILES= headers.h estruct.h edef.h efunc.h pico.h os.h
#
# dependencies for the Unix versions of pico and libpico.a
#
all: pico pilot
pico pilot: libpico.a
pico: main.o
$(CC) $(CFLAGS) main.o libpico.a $(LIBS) -o pico
pilot: pilot.o
$(CC) $(CFLAGS) pilot.o libpico.a $(LIBS) -o pilot
libpico.a: $& $(OFILES)
$(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
$(RANLIB) libpico.a
clean:
rm -f *.a *.o *~ pico_os.c os.h pico pilot
cd osdep; $(MAKE) clean; cd ..
os.h: osdep/os-sol.h
$(RM) os.h
$(LN) osdep/os-sol.h os.h
pico_os.c: osdep/os-sv4.c
$(RM) pico_os.c
$(LN) osdep/os-sv4.c pico_os.c
$(OFILES) main.o pilot.o: $(HFILES)
pico.o: ebind.h
osdep/os-sv4.c: osdep/header osdep/unix osdep/read.pol osdep/raw.ios \
osdep/spell.unx osdep/term.cap \
osdep/os-sv4.ic
cd osdep; $(MAKE) includer os-sv4.c; cd ..