xref: /titanic_50/usr/src/cmd/eqn/neqn.d/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
17c478bd9Sstevel@tonic-gate#
224da5b34Srie# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
324da5b34Srie# Use is subject to license terms.
47c478bd9Sstevel@tonic-gate#
57c478bd9Sstevel@tonic-gate
67c478bd9Sstevel@tonic-gateinclude		../../Makefile.cmd
77c478bd9Sstevel@tonic-gate
87c478bd9Sstevel@tonic-gatePROG =		neqn
97c478bd9Sstevel@tonic-gate
107c478bd9Sstevel@tonic-gateCSRCS =		diacrit.c eqnbox.c font.c fromto.c funny.c	\
117c478bd9Sstevel@tonic-gate		glob.c integral.c io.c lex.c lookup.c		\
127c478bd9Sstevel@tonic-gate		mark.c matrix.c move.c over.c paren.c		\
137c478bd9Sstevel@tonic-gate		pile.c shift.c size.c sqrt.c text.c
147c478bd9Sstevel@tonic-gate
157c478bd9Sstevel@tonic-gateSRCS =		$(CSRCS:%=../%)
167c478bd9Sstevel@tonic-gate
177c478bd9Sstevel@tonic-gateYACCSRC =	e.y
187c478bd9Sstevel@tonic-gate
197c478bd9Sstevel@tonic-gateCOBJS =		$(CSRCS:%.c=%.o)
207c478bd9Sstevel@tonic-gateOBJS =		$(YACCSRC:%.y=%.o) $(COBJS)
217c478bd9Sstevel@tonic-gate
227c478bd9Sstevel@tonic-gate
237c478bd9Sstevel@tonic-gateCLEANFILES =	y.tab.c y.tab.h $(YACCSRC:%.y=%.c) $(YACCSRC:%.y=%.def)
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gateYFLAGS =	-d
267c478bd9Sstevel@tonic-gateCPPFLAGS =	-DNEQN -I. -I.. $(CPPFLAGS.master)
2724da5b34SrieLDFLAGS +=	$(MAPFILE.NGB:%=-M%)
287c478bd9Sstevel@tonic-gate
29*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-implicit-function-declaration
30*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
31*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-unused-label
32*7014882cSRichard Lowe
337c478bd9Sstevel@tonic-gate#
347c478bd9Sstevel@tonic-gate# for message catalog
357c478bd9Sstevel@tonic-gate#
367c478bd9Sstevel@tonic-gatePOFILE= neqn.d.po
377c478bd9Sstevel@tonic-gatePOFILES= e.po
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gate.KEEP_STATE:
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gateall :		$(PROG)
427c478bd9Sstevel@tonic-gate
4324da5b34Srie$(PROG) :	$(OBJS) $(MAPFILE.NGB)
447c478bd9Sstevel@tonic-gate		$(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
457c478bd9Sstevel@tonic-gate		$(POST_PROCESS)
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gatecatalog:        $(POFILE)
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gate$(POFILE):      $(POFILES)
507c478bd9Sstevel@tonic-gate	 $(RM)	$@
517c478bd9Sstevel@tonic-gate	 cat     $(POFILES)      > $@
527c478bd9Sstevel@tonic-gate
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gate$(YACCSRC:%.y=%.c) + $(YACCSRC:%.y=%.def) : ../$(YACCSRC)
557c478bd9Sstevel@tonic-gate		$(YACC.y) ../$(YACCSRC)
567c478bd9Sstevel@tonic-gate		$(MV) y.tab.c $(YACCSRC:%.y=%.c)
577c478bd9Sstevel@tonic-gate		$(MV) y.tab.h $(YACCSRC:%.y=%.def)
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gate$(COBJS) :	$$(@:%.o=../%.c)
607c478bd9Sstevel@tonic-gate		$(COMPILE.c) ../$(@:%.o=%.c)
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gateinstall :	all $(ROOTPROG)
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gateclean:
657c478bd9Sstevel@tonic-gate		$(RM) $(OBJS) $(CLEANFILES)
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gatelint:		lint_SRCS
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gatestrip :
707c478bd9Sstevel@tonic-gate		$(STRIP) $(PROG)
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gateinclude		../../Makefile.targ
73