xref: /original-bsd/usr.bin/window/Makefile (revision 4b9b56dc)
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved.
4#
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	5.6 (Berkeley) 09/15/89
18#
19CFLAGS=	-O -R
20LIBC=	/lib/libc.a
21SRCS=	char.c cmd.c cmd1.c cmd2.c cmd3.c cmd4.c cmd5.c cmd6.c cmd7.c \
22	context.c error.c lcmd.c lcmd1.c lcmd2.c main.c mloop.c parser1.c \
23	parser2.c parser3.c parser4.c parser5.c scanner.c startup.c string.c \
24	ttf100.c ttgeneric.c tth19.c tth29.c ttinit.c ttoutput.c tttermcap.c \
25	tttvi925.c ttwyse60.c ttwyse75.c ttzapple.c ttzentec.c \
26	var.c win.c wwadd.c wwalloc.c wwbox.c wwchild.c \
27	wwclose.c wwclreol.c wwclreos.c wwcursor.c wwdata.c wwdelchar.c \
28	wwdelete.c wwdelline.c wwdump.c wwend.c wwenviron.c wwerror.c \
29	wwflush.c wwframe.c wwgets.c wwinit.c wwinschar.c wwinsline.c \
30	wwiomux.c wwlabel.c wwmisc.c wwmove.c wwopen.c wwprintf.c wwpty.c \
31	wwputc.c wwputs.c wwredraw.c wwredrawwin.c wwrint.c wwscroll.c \
32	wwsize.c wwspawn.c wwsuspend.c wwtty.c wwunframe.c wwupdate.c \
33	wwwrite.c xx.c xxflush.c compress.c
34OBJS=	char.o cmd.o cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o cmd7.o \
35	context.o error.o lcmd.o lcmd1.o lcmd2.o main.o mloop.o parser1.o \
36	parser2.o parser3.o parser4.o parser5.o scanner.o startup.o string.o \
37	ttf100.o ttgeneric.o tth19.o tth29.o ttinit.o ttoutput.o tttermcap.o \
38	tttvi925.o ttwyse60.o ttwyse75.o ttzapple.o ttzentec.o \
39	var.o win.o wwadd.o wwalloc.o wwbox.o wwchild.o \
40	wwclose.o wwclreol.o wwclreos.o wwcursor.o wwdata.o wwdelchar.o \
41	wwdelete.o wwdelline.o wwdump.o wwend.o wwenviron.o wwerror.o \
42	wwflush.o wwframe.o wwgets.o wwinit.o wwinschar.o wwinsline.o \
43	wwiomux.o wwlabel.o wwmisc.o wwmove.o wwopen.o wwprintf.o wwpty.o \
44	wwputc.o wwputs.o wwredraw.o wwredrawwin.o wwrint.o wwscroll.o \
45	wwsize.o wwspawn.o wwsuspend.o wwtty.o wwunframe.o wwupdate.o \
46	wwwrite.o xx.o xxflush.o compress.o
47MAN=	window.0
48
49all: window
50
51window: ${OBJS} ${LIBC}
52	${CC} -o $@ ${CFLAGS} ${OBJS} -ltermcap
53
54clean:
55	rm -f ${OBJS} core window
56
57cleandir: clean
58	rm -f ${MAN} tags .depend
59
60depend: ${SRCS}
61	mkdep ${CFLAGS} ${SRCS}
62
63install: ${MAN}
64	install -s -o bin -g bin -m 755 window ${DESTDIR}/usr/bin
65	install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
66
67lint: ${SRCS}
68	lint ${CFLAGS} -z ${SRCS}
69
70tags: ${SRCS}
71	ctags ${SRCS}
72