Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt#
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# CDDL HEADER START
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt#
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# The contents of this file are subject to the terms of the
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# Common Development and Distribution License, Version 1.0 only
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# (the "License"). You may not use this file except in compliance
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# with the License.
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt#
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# or http://www.opensolaris.org/os/licensing.
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# See the License for the specific language governing permissions
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# and limitations under the License.
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt#
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt#
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# CDDL HEADER END
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt#
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt#
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# Use is subject to license terms.
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt#
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt# ident "%Z%%M% %I% %E% SMI"
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt#
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan HuntPROG= mkpwdict
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Huntinclude ../Makefile.cmd
452a97a23d2886d62fd1721ffab06fa9d14e939bTinderbox User
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan HuntCFLAGS += -I$(SRC)/lib/pam_modules/authtok_check
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan HuntLINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2 -m
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan HuntLINTFLAGS += -I$(SRC)/lib/pam_modules/authtok_check
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan HuntLDLIBS += -lcmd
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan HuntCRACK_SRCDIR= $(SRC)/lib/pam_modules/authtok_check/
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan HuntCRACK_OBJS= packer.o packlib.o dict.o stringlib.o
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan HuntCRACK_SRCS= $(CRACK_OBJS:%.o=$(CRACK_SRCDIR)/%.c)
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan HuntOBJS= $(CRACK_OBJS) mkpwdict.o
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan HuntSRCS= $(CRACK_SRCS) mkpwdict.c
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt.KEEP_STATE:
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Huntall: $(PROG)
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Hunt
94694e720a911a38b01ff5036c01d883b3c9cbb1Evan Huntinstall: all $(ROOTPROG)
%.o: $(CRACK_SRCDIR)/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
mkpwdict: $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
clean:
$(RM) $(PROG) $(OBJS)
lint: lint_SRCS
include ../Makefile.targ