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