xref: /original-bsd/old/eqn/neqn/Makefile (revision 96e323b4)
1#
2# Copyright (c) 1987 The 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.2 (Berkeley) 10/22/88
18#
19COMMON=	../common_source
20CFLAGS=	-O -DNEQN -I. -I${COMMON}
21YFLAGS=	-d
22VPATH=	${COMMON}
23LIBC=	/lib/libc.a
24SRCS=	e.c diacrit.c eqnbox.c font.c fromto.c funny.c glob.c integral.c \
25	io.c lex.c lookup.c mark.c matrix.c move.c over.c paren.c pile.c \
26	shift.c size.c sqrt.c text.c
27OBJS=	e.o diacrit.o eqnbox.o font.o fromto.o funny.o glob.o integral.o \
28	io.o lex.o lookup.o mark.o matrix.o move.o over.o paren.o pile.o \
29	shift.o size.o sqrt.o text.o
30
31all: neqn
32
33neqn: ${OBJS} ${LIBC}
34	${CC} -o $@ ${CFLAGS} ${OBJS}
35
36e.c: ${COMMON}/e.y
37	${YACC} ${YFLAGS} ${COMMON}/e.y
38	mv y.tab.h e.def
39	mv y.tab.c e.c
40
41clean:
42	rm -f ${OBJS} core neqn e.c e.def
43
44cleandir: clean
45	rm -f ${MAN} tags .depend
46
47depend: ${SRCS}
48	mkdep ${CFLAGS} ${SRCS}
49
50install: ${MAN}
51	install -s -o bin -g bin -m 755 neqn ${DESTDIR}/usr/bin/neqn
52
53lint: ${SRCS}
54	lint ${CFLAGS} ${SRCS}
55
56tags: ${SRCS}
57	ctags ${SRCS}
58