summaryrefslogtreecommitdiff
path: root/japanese/pine/files/patch-ab
blob: 6f35325f6024458dc9a9401eb44a3784b267bd4d (plain) (blame)
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
*** pico/makefile.bsf.orig	Fri Sep 20 13:44:43 1996
--- pico/makefile.bsf	Fri Sep 20 13:44:43 1996
***************
*** 0 ****
--- 1,101 ----
+ #
+ #   Michael Seibel
+ #   Networks and Distributed Computing
+ #   Computing and Communications
+ #   University of Washington
+ #   Administration Builiding, AG-44
+ #   Seattle, Washington, 98195, USA
+ #   Internet: mikes@cac.washington.edu
+ #
+ #   Please address all bugs and comments to "pine-bugs@cac.washington.edu"
+ #
+ #
+ #   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-1996 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 the FreeBSD shared-lib version of the PINE composer library and 
+ # stand-alone editor pico.
+ #
+ 
+ #includes symbol info for debugging 
+ DASHO=		# -g
+ #for normal build
+ #DASHO=		-O
+ 
+ STDCFLAGS=	-DBSDI -DBSDI2 -DPOSIX -DJOB_CONTROL -DANSI -DMOUSE \
+ 		-I/usr/local/include
+ EXTRACFLAGS=	-DKANJI -DCANNA -DHELPFILE
+ CFLAGS+=		$(EXTRACFLAGS) $(DASHO) $(STDCFLAGS)
+ 
+ # switches for library building
+ LIBCMD=		ar
+ LIBARGS=	ru
+ RANLIB=		ranlib
+ 
+ EXTRALIBES=	-lcanna -L/usr/local/lib
+ LIBS=		$(EXTRALIBES) -ltermcap
+ 
+ OFILES=		attach.o ansi.o basic.o bind.o browse.o buffer.o \
+ 		composer.o display.o file.o fileio.o line.o osdep.o \
+ 		pico.o random.o region.o search.o spell.o tcap.o window.o \
+ 		word.o kanji.o jctype.o canna.o
+ 
+ # Lets be elite and not retype in the above
+ SOFILES=	${OFILES:.o=.so}
+ 
+ CFILES=		attach.c ansi.c basic.c bind.c browse.c buffer.c \
+ 		composer.c display.c file.c fileio.c line.c osdep.c \
+ 		pico.c random.c region.c search.c spell.c tcap.c window.c \
+ 		word.c kanji.c jctype.c canna.c
+ 
+ HFILES=		estruct.h edef.h efunc.h ebind.h pico.h osdep.h \
+ 		kanji.h jctype.h canna.h
+ 
+ # Need this for the shared library rule to work correctly
+ .SUFFIXES: .o .so
+ 
+ #
+ # dependencies for the Unix versions of pico and libpico.a
+ #
+ all:		pico pilot
+ 
+ osdep.c:	os_unix.c
+ 		rm -f osdep.c
+ 		cp os_unix.c osdep.c
+ 
+ osdep.h:	os_unix.h
+ 		rm -f osdep.h
+ 		cp os_unix.h osdep.h
+ 
+ libpico.a:	osdep.c osdep.h $(OFILES)
+ 		$(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
+ 		$(RANLIB) libpico.a
+ 
+ libpico.so.1.3:	osdep.c osdep.h $(SOFILES)
+ 		ld -Bshareable -o libpico.so.1.3 $(SOFILES)
+ 
+ pico:		main.c libpico.so.1.3
+ 		$(CC) $(CFLAGS) main.c -L. -lpico $(LIBS) -o pico
+ 
+ pilot:		pilot.c libpico.so.1.3
+ 		$(CC) $(CFLAGS) pilot.c -L. -lpico $(LIBS) -o pilot
+ 
+ .c.so:		; $(CC) -fpic -DPIC -c $(CFLAGS) ${@:.so=.c} -o $@
+ 
+ .c.o:		; $(CC) -c $(CFLAGS) $*.c
+ 
+ $(OFILES):	$(HFILES)
+ 
+ $(SOFILES):	$(HFILES)
+ 
+ clean:
+ 		rm -f *.a *.so.1.3 *.o *.so *~ osdep.c osdep.h pico pilot