date and time created 88/12/05 15:43:16 by bostic
[unix-history] / usr / src / old / tbl / Makefile
CommitLineData
120e0954 1#
f20cbf5d
KB
2# Copyright (c) 1987 The Regents of the University of California.
3# All rights reserved.
120e0954 4#
f20cbf5d
KB
5# Redistribution and use in source and binary forms are permitted
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
17# @(#)Makefile 4.4 (Berkeley) %G%
120e0954
KB
18#
19CFLAGS= -O
20LIBC= /lib/libc.a
21SRCS= t0.c t1.c t2.c t3.c t4.c t5.c t6.c t7.c t8.c t9.c tb.c tc.c te.c \
22 tf.c tg.c ti.c tm.c ts.c tt.c tu.c tv.c
23OBJS= t0.o t1.o t2.o t3.o t4.o t5.o t6.o t7.o t8.o t9.o tb.o tc.o te.o \
24 tf.o tg.o ti.o tm.o ts.o tt.o tu.o tv.o
f20cbf5d 25MAN= tbl.0
384c3460 26
120e0954 27all: tbl
384c3460 28
120e0954
KB
29tbl: ${OBJS} ${LIBC}
30 ${CC} -o $@ ${CFLAGS} ${OBJS}
384c3460 31
f20cbf5d 32clean:
120e0954 33 rm -f ${OBJS} core tbl
384c3460 34
f20cbf5d
KB
35cleandir: clean
36 rm -f ${MAN} tags .depend
37
38depend: ${SRCS}
120e0954
KB
39 mkdep ${CFLAGS} ${SRCS}
40
f20cbf5d 41install: ${MAN}
120e0954 42 install -s -o bin -g bin -m 755 tbl ${DESTDIR}/usr/bin/tbl
f20cbf5d 43 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
120e0954 44
f20cbf5d 45lint: ${SRCS}
120e0954
KB
46 lint ${CFLAGS} ${SRCS}
47
f20cbf5d 48tags: ${SRCS}
120e0954 49 ctags ${SRCS}
384c3460
BS
50
51test:
52 sh compr sample01
53 sh compr sample02
54 sh compr sample03
55 sh compr sample04
56 sh compr sample05
57 sh compr sample06
58 sh compr sample07
59 sh compr sample08
60 sh compeq sample09
61 sh compeq sample10
62 sh compeq sample11
63 sh compr sample12
64 sh compr sample13
65 sh compr sample14
66 sh compr sample15
67 sh compr sample16
68 sh compr sample17
69 sh compr sample18
70 sh compr sample19
71 sh compr sample20
72 sh compr sample21
73 sh compr sample22
74 sh compr sample23
75 sh compms sample24
76 sh compr sample25
77 sh compr sample26
78 sh compr sample27
79 sh compr sample28
80 sh compr sample29
81 sh compr sample30
82 sh compr sample31
83 sh compr sample32
84 sh compr sample33
85 sh compms sample34
86 sh compeq sample35
87 sh compeq sample36
88 sh compnr sample37
89 sh compr sample38
90 sh compr sample39
91 sh compr sample40
92 sh compr sample41
93 sh compr sample42
94 sh compr sample43
95 sh compr sample44
96 sh compms sample45
97 sh compms sample46
98 sh compr sample47
99 sh compnr sample48
100 sh compeq /usr/doc/mel/tables
120e0954 101
384c3460
BS
102ichk: /usr/bin/tbl
103 /usr/bin/tbl sample1 >junk1
104 cmp -s junk1 out1