10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*10258SJason.Beloro@Sun.COM# Common Development and Distribution License (the "License"). 6*10258SJason.Beloro@Sun.COM# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*10258SJason.Beloro@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*10258SJason.Beloro@Sun.COM# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate# cmd/troff/troff.d/Makefile 260Sstevel@tonic-gate# 270Sstevel@tonic-gate 280Sstevel@tonic-gateinclude ../../Makefile.cmd 290Sstevel@tonic-gate 300Sstevel@tonic-gatePROG = troff ta makedev 310Sstevel@tonic-gate 32*10258SJason.Beloro@Sun.COMSUBDIRS = tmac.d 330Sstevel@tonic-gate 340Sstevel@tonic-gateTAOBJS = draw.o ta.o 350Sstevel@tonic-gateMAKEDEVOBJS = makedev.o 360Sstevel@tonic-gateTROFFOBJS = t10.o t6.o 370Sstevel@tonic-gateCOMMONOBJS = hytab.o n1.o n2.o n3.o n4.o n5.o \ 380Sstevel@tonic-gate n7.o n8.o n9.o ni.o nii.o suftab.o 390Sstevel@tonic-gate 400Sstevel@tonic-gateSRCS = $(TAOBJS:%.o=%.c) $(MAKEDEVOBJS:%.o=%.c) \ 410Sstevel@tonic-gate $(TROFFOBJS:%.o=%.c) $(COMMONOBJS:%.o=../%.c) 420Sstevel@tonic-gate 430Sstevel@tonic-gateTXTS = README maketables troff.sh 440Sstevel@tonic-gate 450Sstevel@tonic-gateCPPFLAGS = -DUSG -DINCORE -I. -I.. $(CPPFLAGS.master) 460Sstevel@tonic-gate# 470Sstevel@tonic-gate# For message catalog 480Sstevel@tonic-gate# 490Sstevel@tonic-gatePOFILES= $(TROFFOBJS:%.o=%.po) $(COMMONOBJS:%.o=../%.po) 500Sstevel@tonic-gatePOFILE= troff.d.po 510Sstevel@tonic-gate 520Sstevel@tonic-gate# conditional assignments 530Sstevel@tonic-gate 540Sstevel@tonic-gateall := TARGET= all 550Sstevel@tonic-gateinstall := TARGET= install 560Sstevel@tonic-gateclean := TARGET= clean 570Sstevel@tonic-gateclobber := TARGET= clobber 580Sstevel@tonic-gatelint := TARGET= lint 590Sstevel@tonic-gatestrip := TARGET= strip 600Sstevel@tonic-gate 610Sstevel@tonic-gatetroff:= POBJS= $(COMMONOBJS) $(TROFFOBJS) 620Sstevel@tonic-gateta:= POBJS= $(TAOBJS) 630Sstevel@tonic-gatemakedev:= POBJS= $(MAKEDEVOBJS) 640Sstevel@tonic-gate 650Sstevel@tonic-gateta:= LDLIBS += -lm 660Sstevel@tonic-gatetroff:= LDLIBS += -lmapmalloc 670Sstevel@tonic-gate 680Sstevel@tonic-gate# build rule for common source above 690Sstevel@tonic-gate%.o: ../%.c 700Sstevel@tonic-gate $(COMPILE.c) $< 710Sstevel@tonic-gate 720Sstevel@tonic-gate.KEEP_STATE: 730Sstevel@tonic-gate 740Sstevel@tonic-gate.PARALLEL: $(COMMONOBJS) $(TROFFOBJS) $(TAOBJS) $(MAKEDEVOBJS) 750Sstevel@tonic-gate 760Sstevel@tonic-gateall : $(PROG) $(TXTS) $(SUBDIRS) 770Sstevel@tonic-gate 780Sstevel@tonic-gate$(PROG) : $$(POBJS) 790Sstevel@tonic-gate $(LINK.c) -o $@ $(POBJS) $(LDLIBS) 800Sstevel@tonic-gate $(POST_PROCESS) 810Sstevel@tonic-gate 820Sstevel@tonic-gateinstall: $(PROG) $(ROOTPROG) $(SUBDIRS) 830Sstevel@tonic-gate 840Sstevel@tonic-gateclean: $(SUBDIRS) 850Sstevel@tonic-gate $(RM) $(TAOBJS) $(MAKEDEVOBJS) $(TROFFOBJS) $(COMMONOBJS) 860Sstevel@tonic-gate 870Sstevel@tonic-gatecatalog: $(POFILE) 880Sstevel@tonic-gate 890Sstevel@tonic-gate$(POFILE): $(POFILES) 900Sstevel@tonic-gate $(RM) $@ 910Sstevel@tonic-gate cat $(POFILES) > $@ 920Sstevel@tonic-gate 930Sstevel@tonic-gate 940Sstevel@tonic-gatestrip : 950Sstevel@tonic-gate $(STRIP $(PROG) 960Sstevel@tonic-gate 970Sstevel@tonic-gatelint : lint_SRCS 980Sstevel@tonic-gate 990Sstevel@tonic-gateinclude ../../Makefile.targ 1000Sstevel@tonic-gate 1010Sstevel@tonic-gate# additional dependency for clobber which is defined in Makefile.targ 1020Sstevel@tonic-gateclobber: $(SUBDIRS) 1030Sstevel@tonic-gate 1040Sstevel@tonic-gate$(SUBDIRS) : FRC 1050Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 1060Sstevel@tonic-gate 1070Sstevel@tonic-gateFRC: 108