17c478bd9Sstevel@tonic-gate# 224da5b34Srie# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 324da5b34Srie# Use is subject to license terms. 47c478bd9Sstevel@tonic-gate# 55661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 67c478bd9Sstevel@tonic-gate 77c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 87c478bd9Sstevel@tonic-gate 97c478bd9Sstevel@tonic-gatePROG = neqn 107c478bd9Sstevel@tonic-gate 117c478bd9Sstevel@tonic-gateCSRCS = diacrit.c eqnbox.c font.c fromto.c funny.c \ 127c478bd9Sstevel@tonic-gate glob.c integral.c io.c lex.c lookup.c \ 137c478bd9Sstevel@tonic-gate mark.c matrix.c move.c over.c paren.c \ 147c478bd9Sstevel@tonic-gate pile.c shift.c size.c sqrt.c text.c 157c478bd9Sstevel@tonic-gate 167c478bd9Sstevel@tonic-gateSRCS = $(CSRCS:%=../%) 177c478bd9Sstevel@tonic-gate 187c478bd9Sstevel@tonic-gateYACCSRC = e.y 197c478bd9Sstevel@tonic-gate 207c478bd9Sstevel@tonic-gateCOBJS = $(CSRCS:%.c=%.o) 217c478bd9Sstevel@tonic-gateOBJS = $(YACCSRC:%.y=%.o) $(COBJS) 227c478bd9Sstevel@tonic-gate 237c478bd9Sstevel@tonic-gate 247c478bd9Sstevel@tonic-gateCLEANFILES = y.tab.c y.tab.h $(YACCSRC:%.y=%.c) $(YACCSRC:%.y=%.def) 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gateYFLAGS = -d 277c478bd9Sstevel@tonic-gateCPPFLAGS = -DNEQN -I. -I.. $(CPPFLAGS.master) 28*85f4cb87SRichard LoweLDFLAGS += $(MAPFILE.NGB:%=-Wl,-M%) 297c478bd9Sstevel@tonic-gate 307014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 31d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 327014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 337014882cSRichard Lowe 345661bb76SJohn Levon# not linted 355661bb76SJohn LevonSMATCH=off 365661bb76SJohn Levon 377c478bd9Sstevel@tonic-gate# 387c478bd9Sstevel@tonic-gate# for message catalog 397c478bd9Sstevel@tonic-gate# 407c478bd9Sstevel@tonic-gatePOFILE= neqn.d.po 417c478bd9Sstevel@tonic-gatePOFILES= e.po 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gate.KEEP_STATE: 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gateall : $(PROG) 467c478bd9Sstevel@tonic-gate 4724da5b34Srie$(PROG) : $(OBJS) $(MAPFILE.NGB) 487c478bd9Sstevel@tonic-gate $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) 497c478bd9Sstevel@tonic-gate $(POST_PROCESS) 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gatecatalog: $(POFILE) 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gate$(POFILE): $(POFILES) 547c478bd9Sstevel@tonic-gate $(RM) $@ 557c478bd9Sstevel@tonic-gate cat $(POFILES) > $@ 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gate$(YACCSRC:%.y=%.c) + $(YACCSRC:%.y=%.def) : ../$(YACCSRC) 597c478bd9Sstevel@tonic-gate $(YACC.y) ../$(YACCSRC) 607c478bd9Sstevel@tonic-gate $(MV) y.tab.c $(YACCSRC:%.y=%.c) 617c478bd9Sstevel@tonic-gate $(MV) y.tab.h $(YACCSRC:%.y=%.def) 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gate$(COBJS) : $$(@:%.o=../%.c) 647c478bd9Sstevel@tonic-gate $(COMPILE.c) ../$(@:%.o=%.c) 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gateinstall : all $(ROOTPROG) 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gateclean: 697c478bd9Sstevel@tonic-gate $(RM) $(OBJS) $(CLEANFILES) 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 72