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