Commit | Line | Data |
---|---|---|
74896271 | 1 | # |
232b818e KB |
2 | # Copyright (c) 1987 The Regents of the University of California. |
3 | # All rights reserved. | |
74896271 | 4 | # |
232b818e 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 5.2 (Berkeley) %G% | |
74896271 KB |
18 | # |
19 | COMMON= ../common_source | |
20 | CFLAGS= -O -DNEQN -I. -I${COMMON} | |
21 | YFLAGS= -d | |
22 | VPATH= ${COMMON} | |
23 | LIBC= /lib/libc.a | |
24 | SRCS= 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 | |
27 | OBJS= 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 | ||
31 | all: neqn | |
32 | ||
33 | neqn: ${OBJS} ${LIBC} | |
34 | ${CC} -o $@ ${CFLAGS} ${OBJS} | |
35 | ||
36 | e.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 | ||
232b818e | 41 | clean: |
74896271 KB |
42 | rm -f ${OBJS} core neqn e.c e.def |
43 | ||
232b818e KB |
44 | cleandir: clean |
45 | rm -f ${MAN} tags .depend | |
46 | ||
47 | depend: ${SRCS} | |
74896271 KB |
48 | mkdep ${CFLAGS} ${SRCS} |
49 | ||
232b818e | 50 | install: ${MAN} |
74896271 KB |
51 | install -s -o bin -g bin -m 755 neqn ${DESTDIR}/usr/bin/neqn |
52 | ||
232b818e | 53 | lint: ${SRCS} |
74896271 KB |
54 | lint ${CFLAGS} ${SRCS} |
55 | ||
232b818e | 56 | tags: ${SRCS} |
74896271 | 57 | ctags ${SRCS} |