add Makefile.inc
[unix-history] / usr / src / usr.bin / window / Makefile
CommitLineData
b7a56489 1#
a4e70eb2 2# Copyright (c) 1987 Regents of the University of California.
90127c9f 3# All rights reserved.
b7a56489 4#
90127c9f 5# Redistribution and use in source and binary forms are permitted
5e8b0e60
KB
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.
90127c9f 16#
17f96a0f 17# @(#)Makefile 5.6 (Berkeley) %G%
b7a56489 18#
a4e70eb2
KB
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 \
220051cc 25 tttvi925.c ttwyse60.c ttwyse75.c ttzapple.c ttzentec.c \
8b3c2cd7 26 var.c win.c wwadd.c wwalloc.c wwbox.c wwchild.c \
a4e70eb2
KB
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 \
17f96a0f 33 wwwrite.c xx.c xxflush.c compress.c
a4e70eb2
KB
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 \
220051cc 38 tttvi925.o ttwyse60.o ttwyse75.o ttzapple.o ttzentec.o \
8b3c2cd7 39 var.o win.o wwadd.o wwalloc.o wwbox.o wwchild.o \
a4e70eb2
KB
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 \
17f96a0f 46 wwwrite.o xx.o xxflush.o compress.o
846c83ad 47MAN= window.0
b7a56489 48
a4e70eb2 49all: window
b7a56489 50
a4e70eb2
KB
51window: ${OBJS} ${LIBC}
52 ${CC} -o $@ ${CFLAGS} ${OBJS} -ltermcap
b7a56489 53
846c83ad
KB
54clean:
55 rm -f ${OBJS} core window
b7a56489 56
846c83ad
KB
57cleandir: clean
58 rm -f ${MAN} tags .depend
59
60depend: ${SRCS}
a4e70eb2 61 mkdep ${CFLAGS} ${SRCS}
b7a56489 62
846c83ad 63install: ${MAN}
435e8dff 64 install -s -o bin -g bin -m 755 window ${DESTDIR}/usr/bin
846c83ad 65 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
b7a56489 66
846c83ad 67lint: ${SRCS}
ab8b3b31 68 lint ${CFLAGS} -z ${SRCS}
b7a56489 69
846c83ad 70tags: ${SRCS}
a4e70eb2 71 ctags ${SRCS}