1 # 2 # CDDL HEADER START 3 # 4 # The contents of this file are subject to the terms of the 5 # Common Development and Distribution License, Version 1.0 only 6 # (the "License"). You may not use this file except in compliance 7 # with the License. 8 # 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 # or http://www.opensolaris.org/os/licensing. 11 # See the License for the specific language governing permissions 12 # and limitations under the License. 13 # 14 # When distributing Covered Code, include this CDDL HEADER in each 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 # If applicable, add the following below this CDDL HEADER, with the 17 # fields enclosed by brackets "[]" replaced with your own identifying 18 # information: Portions Copyright [yyyy] [name of copyright owner] 19 # 20 # CDDL HEADER END 21 # 22 # 23 # Copyright (c) 1989 by Sun Microsystems, Inc. 24 # 25 26 include ../../Makefile.cmd 27 28 SUBDIRS = terms.d 29 30 PROG = nroff 31 32 OBJS = n10.o n6.o 33 34 COMMONOBJS = hytab.o n1.o n2.o n3.o n4.o n5.o \ 35 n7.o n8.o n9.o ni.o nii.o suftab.o 36 37 SRCS = $(OBJS:%.o=%.c) $(COMMONOBJS:%.o=../%.c) 38 39 40 CPPFLAGS = -DNROFF -DUSG -DINCORE -DEUC -I. -I.. $(CPPFLAGS.master) 41 42 CERRWARN += -_gcc=-Wno-unused-value 43 CERRWARN += -_gcc=-Wno-extra 44 CERRWARN += -_gcc=-Wno-implicit-function-declaration 45 CERRWARN += -_gcc=-Wno-parentheses 46 CERRWARN += -_gcc=-Wno-unused-variable 47 48 LDLIBS += -lmapmalloc 49 # 50 # message catalog 51 # 52 POFILES= $(OBJS:%.o=%.po) 53 POFILE= nroff.d.po 54 55 56 all := TARGET= all 57 install := TARGET= install 58 clean := TARGET= clean 59 clobber := TARGET= clobber 60 lint := TARGET= lint 61 strip := TARGET= strip 62 63 # build rule for common source above 64 %.o: ../%.c 65 $(COMPILE.c) $< 66 67 .KEEP_STATE: 68 69 .PARALLEL: $(COMMONOBJS) $(OBJS) 70 71 all : $(PROG) $(SUBDIRS) 72 73 $(PROG) : $(OBJS) $(COMMONOBJS) 74 $(LINK.c) -o $@ $(OBJS) $(COMMONOBJS) $(LDLIBS) 75 $(POST_PROCESS) 76 77 install : $(PROG) $(ROOTPROG) $(SUBDIRS) 78 79 catalog: $(POFILE) 80 81 $(POFILE): $(POFILES) 82 $(RM) $@ 83 cat $(POFILES) > $@ 84 85 86 clean : $(SUBDIRS) 87 $(RM) $(OBJS) $(COMMONOBJS) 88 89 strip : 90 $(STRIP) $(PROG) 91 92 lint : lint_SRCS 93 94 include ../../Makefile.targ 95 96 # additional dependency for clobber which is defined in Makefile.targ 97 clobber : $(SUBDIRS) 98 99 $(SUBDIRS) : FRC 100 @cd $@; pwd; $(MAKE) $(TARGET) 101 102 FRC: