xref: /titanic_41/usr/src/cmd/eqn/neqn.d/Makefile (revision 1ae0874509b6811fdde1dfd46f0d93fd09867a3f)
1#
2# ident	"%Z%%M%	%I%	%E% SMI"
3#
4# Copyright (c) 1989 by Sun Microsystems, Inc.
5#
6# cmd/eqn/neqn.d/Makefile
7#
8
9include		../../Makefile.cmd
10
11PROG =		neqn
12
13CSRCS =		diacrit.c eqnbox.c font.c fromto.c funny.c	\
14		glob.c integral.c io.c lex.c lookup.c		\
15		mark.c matrix.c move.c over.c paren.c		\
16		pile.c shift.c size.c sqrt.c text.c
17
18SRCS =		$(CSRCS:%=../%)
19
20YACCSRC =	e.y
21
22COBJS =		$(CSRCS:%.c=%.o)
23OBJS =		$(YACCSRC:%.y=%.o) $(COBJS)
24
25
26CLEANFILES =	y.tab.c y.tab.h $(YACCSRC:%.y=%.c) $(YACCSRC:%.y=%.def)
27
28YFLAGS =	-d
29CPPFLAGS =	-DNEQN -I. -I.. $(CPPFLAGS.master)
30
31#
32# for message catalog
33#
34POFILE= neqn.d.po
35POFILES= e.po
36
37.KEEP_STATE:
38
39all :		$(PROG)
40
41$(PROG) :	$(OBJS)
42		$(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
43		$(POST_PROCESS)
44
45catalog:        $(POFILE)
46
47$(POFILE):      $(POFILES)
48	 $(RM)	$@
49	 cat     $(POFILES)      > $@
50
51
52$(YACCSRC:%.y=%.c) + $(YACCSRC:%.y=%.def) : ../$(YACCSRC)
53		$(YACC.y) ../$(YACCSRC)
54		$(MV) y.tab.c $(YACCSRC:%.y=%.c)
55		$(MV) y.tab.h $(YACCSRC:%.y=%.def)
56
57$(COBJS) :	$$(@:%.o=../%.c)
58		$(COMPILE.c) ../$(@:%.o=%.c)
59
60install :	all $(ROOTPROG)
61
62clean:
63		$(RM) $(OBJS) $(CLEANFILES)
64
65lint:		lint_SRCS
66
67strip :
68		$(STRIP) $(PROG)
69
70include		../../Makefile.targ
71