Makefile revision 7f0b8309074a5d8e9f9d8ffe7aad7bb0b1ee6b1f
8N/A#
8N/A# CDDL HEADER START
98N/A#
8N/A# The contents of this file are subject to the terms of the
8N/A# Common Development and Distribution License, Version 1.0 only
8N/A# (the "License"). You may not use this file except in compliance
8N/A# with the License.
8N/A#
8N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8N/A# or http://www.opensolaris.org/os/licensing.
8N/A# See the License for the specific language governing permissions
8N/A# and limitations under the License.
8N/A#
8N/A# When distributing Covered Code, include this CDDL HEADER in each
8N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8N/A# If applicable, add the following below this CDDL HEADER, with the
8N/A# fields enclosed by brackets "[]" replaced with your own identifying
8N/A# information: Portions Copyright [yyyy] [name of copyright owner]
8N/A#
8N/A# CDDL HEADER END
8N/A#
8N/A#
8N/A#ident "%Z%%M% %I% %E% SMI"
8N/A#
8N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
8N/A# Use is subject to license terms.
8N/A#
8N/A# cmd/spell/Makefile
8N/A#
8N/A
258N/AHASHPROG= hashmk1 spellin1
8N/ASHPROG= spell compress
8N/AHASHTAB= hlista hlistb hstop
8N/ABINPROG= spellprog spellin hashmake hashcheck
253N/APROG= $(SHPROG) $(BINPROG) $(HASHPROG) $(HASHTAB) spellhist
253N/A
253N/ASPELLPROGSRC= spellprog.c hash.c hashlook.c huff.c
253N/ASPELLPROGOBJ= $(SPELLPROGSRC:%.c=%.o)
253N/A
253N/ASPELLINSRC= spellin.c huff.c
258N/ASPELLINOBJ= $(SPELLINSRC:%.c=%.o)
98N/A
156N/AHASHCHECKSRC= hashcheck.c hash.c huff.c
98N/AHASHCHECKOBJ= $(HASHCHECKSRC:%.c=%.o)
156N/A
98N/AHASHMAKESRC= hashmake.c hash.c
98N/AHASHMAKEOBJ= $(HASHMAKESRC:%.c=%.o)
156N/A
156N/ASRCS= $(SPELLPROGSRC) spellin.c hashcheck.c hashmake.c
8N/AOBJS= $(SRCS:%.c=%.o)
8N/A
8N/AWORDS= american british local list extra stop
8N/ATXTS= compress.sh spell.sh
8N/A
8N/Ainclude ../Makefile.cmd
8N/A
8N/ACFLAGS += $(CCVERBOSE)
8N/A
8N/AXGETFLAGS += -a -x spell.xcl
8N/A
8N/ACLOBBERFILES += htemp1 htemp2
8N/A
8N/AROOTSPELLD = $(ROOTLIB)/spell
8N/AROOTVARADMD = $(ROOT)/var/adm
8N/AROOTDIRS= $(ROOTSPELLD)
8N/A
8N/ABINF= spell
8N/ASPELLF= spellprog hashmake hashcheck spellin hstop hlistb hlista compress
8N/AVARADMF= spellhist
8N/A
8N/AROOTBINF = $(BINF:%=$(ROOTBIN)/%)
8N/AROOTSPELLF = $(SPELLF:%=$(ROOTSPELLD)/%)
ROOTVARADMF = $(VARADMF:%=$(ROOTVARADMD)/%)
HASHFILEMODE = 0644
$(ROOTSPELLD)/hstop $(ROOTSPELLD)/hlistb \
$(ROOTSPELLD)/hlista := FILEMODE = 0644
$(ROOTVARADMF) := FILEMODE = 0666
spellin1 hashmk1 := CC = $(NATIVECC)
spellin1 hashmk1 := POST_PROCESS =
spellin1 hashmk1 := CPPFLAGS =
spellin1 hashmk1 := LDFLAGS =
$(ROOTSPELLD)/% $(ROOTVARADMD)/% : %
$(INS.file)
.KEEP_STATE:
all: $(PROG) $(TXTS)
spellprog: $(SPELLPROGOBJ)
$(LINK.c) $(SPELLPROGOBJ) -o $@ $(LDLIBS)
$(POST_PROCESS)
spellin spellin1: $(SPELLINOBJ)
$(LINK.c) $(SPELLINOBJ) -o $@ $(LDLIBS)
$(POST_PROCESS)
spellhist:
$(ECHO) '\c' > spellhist
hashcheck: $(HASHCHECKOBJ)
$(LINK.c) $(HASHCHECKOBJ) -o $@ $(LDLIBS)
$(POST_PROCESS)
hashmake hashmk1: $(HASHMAKEOBJ)
$(LINK.c) $(HASHMAKEOBJ) -o $@ $(LDLIBS)
$(POST_PROCESS)
htemp1: list local extra hashmk1
$(RM) $@; cat list local extra | $(_SH_) ./hashmk1 > $@
hlista: american $(HASHPROG) htemp1
$(RM) htemp2; ./hashmk1 <american |sort -u - htemp1 >htemp2
$(RM) $@; ./spellin1 `wc htemp2|sed -n 's/\([^ ]\) .*/\1/p'`<htemp2 >$@
$(RM) htemp2
hlistb: british $(HASHPROG) htemp1
$(RM) htemp2; ./hashmk1 <british |sort -u - htemp1 >htemp2
$(RM) $@; ./spellin1 `wc htemp2|sed -n 's/\([^ ]\) .*/\1/p'`<htemp2 >$@
$(RM) htemp2
hstop: stop $(HASHPROG)
$(RM) htemp2; ./hashmk1 <stop | sort -u >htemp2
$(RM) $@; ./spellin1 `wc htemp2|sed -n 's/\([^ ]\) .*/\1/p'`<htemp2 >$@
$(RM) htemp2
install: all $(ROOTDIRS) $(ROOTBINF) $(ROOTSPELLF) $(ROOTVARADMF)
$(ROOTDIRS):
$(INS.dir)
lint: lint_SRCS
clean:
$(RM) $(OBJS)
include ../Makefile.targ