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