17c478bdstevel@tonic-gate# 27c478bdstevel@tonic-gate# CDDL HEADER START 37c478bdstevel@tonic-gate# 47c478bdstevel@tonic-gate# The contents of this file are subject to the terms of the 545916cdjpk# Common Development and Distribution License (the "License"). 645916cdjpk# You may not use this file except in compliance with the License. 77c478bdstevel@tonic-gate# 87c478bdstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bdstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bdstevel@tonic-gate# See the License for the specific language governing permissions 117c478bdstevel@tonic-gate# and limitations under the License. 127c478bdstevel@tonic-gate# 137c478bdstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bdstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bdstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bdstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bdstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bdstevel@tonic-gate# 197c478bdstevel@tonic-gate# CDDL HEADER END 2045916cdjpk 2145916cdjpk 227c478bdstevel@tonic-gate# 2324fe0b3jmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 247c478bdstevel@tonic-gate# Use is subject to license terms. 257c478bdstevel@tonic-gate# 260a44ef6jacobs 277c478bdstevel@tonic-gateinclude ../Makefile.lp 287c478bdstevel@tonic-gate 290a44ef6jacobsSUBDIRS = lptest lpadmin lpsched scripts 307c478bdstevel@tonic-gate 31e2738c5jacobsLOCALPROG = lpshut 327c478bdstevel@tonic-gate 337c478bdstevel@tonic-gateSBINPROG = lpfilter lpforms lpusers 347c478bdstevel@tonic-gate 357c478bdstevel@tonic-gateLIBLINKS = $(SBINPROG) 367c478bdstevel@tonic-gate 377c478bdstevel@tonic-gatePROG = $(LOCALPROG) $(SBINPROG) 387c478bdstevel@tonic-gate 39355b466jacobsOBJS= $(SBINPROG:=.o) 407c478bdstevel@tonic-gate 417c478bdstevel@tonic-gateSRCS= $(OBJS:.o=.c) 427c478bdstevel@tonic-gate 437c478bdstevel@tonic-gatePOFILE= lp_cmd.po 44e2738c5jacobsPOFILES= $(SRCS:%.c=%.po) lpschedlpshut.po 457c478bdstevel@tonic-gate 467c478bdstevel@tonic-gateROOTLIBLPLOCLPROG= $(LOCALPROG:%=$(ROOTLIBLPLOCL)/%) 477c478bdstevel@tonic-gateROOTSBINPROG= $(SBINPROG:%=$(ROOTUSRSBIN)/%) 487c478bdstevel@tonic-gateROOTSYMLINKS= $(LIBLINKS:%=$(ROOTLIB)/%) 497c478bdstevel@tonic-gate 507c478bdstevel@tonic-gate 517c478bdstevel@tonic-gateCPPFLAGS = -I$(LPINC) $(CPPFLAGS.master) 5224da5b3rieLDFLAGS += $(MAPFILE.NGB:%=-M%) 537c478bdstevel@tonic-gate 547c478bdstevel@tonic-gate# conditional assignments 557c478bdstevel@tonic-gate# 567c478bdstevel@tonic-gatelpfilter:= LDLIBS += $(LIBFLT) $(LIBMSG) $(LIBACC) $(LIBOAM) $(LIBLP) \ 5767e3a03rie -lgen -lsecdb 587c478bdstevel@tonic-gatelpforms:= LDLIBS += $(LIBFRM) $(LIBMSG) $(LIBREQ) $(LIBOAM) \ 5967e3a03rie $(LIBACC) $(LIBLP) -lsecdb 607c478bdstevel@tonic-gatelpshut:= LDLIBS += $(LIBMSG) $(LIBOAM) $(LIBLP) 617c478bdstevel@tonic-gatelpusers:= LDLIBS += $(LIBMSG) $(LIBACC) $(LIBOAM) $(LIBUSR) $(LIBLP) 627c478bdstevel@tonic-gate 637c478bdstevel@tonic-gate.KEEP_STATE: 647c478bdstevel@tonic-gate 657c478bdstevel@tonic-gateall: $(PROG) $(SUBDIRS) 667c478bdstevel@tonic-gate 677c478bdstevel@tonic-gateinstall: $(PROG) $(ROOTLIBLPLOCLPROG) $(ROOTSBINPROG) \ 68355b466jacobs $(ROOTSYMLINKS) $(SUBDIRS) 697c478bdstevel@tonic-gate 707c478bdstevel@tonic-gatecatalog: $(SUBDIRS) $(POFILE) 717c478bdstevel@tonic-gate $(CP) $(POFILE) .. 727c478bdstevel@tonic-gate 737c478bdstevel@tonic-gateclean: $(SUBDIRS) 747c478bdstevel@tonic-gate $(RM) $(OBJS) 757c478bdstevel@tonic-gate 767c478bdstevel@tonic-gateclobber: $(SUBDIRS) local_clobber 777c478bdstevel@tonic-gate 787c478bdstevel@tonic-gatelocal_clobber: 79e2738c5jacobs $(RM) $(OBJS) $(PROG) $(CLOBBERFILES) 807c478bdstevel@tonic-gate 817c478bdstevel@tonic-gatestrip: $(SUBDIRS) 827c478bdstevel@tonic-gate $(STRIP) $(PROG) 837c478bdstevel@tonic-gate 847c478bdstevel@tonic-gatelint: 857c478bdstevel@tonic-gate $(LINT.c) $(SRCS) $(LDLIBS) 867c478bdstevel@tonic-gate 877c478bdstevel@tonic-gate$(ROOTSYMLINKS): 887c478bdstevel@tonic-gate $(RM) $@; $(SYMLINK) ../sbin/$(@F) $@ 897c478bdstevel@tonic-gate 907c478bdstevel@tonic-gate$(SUBDIRS): FRC 917c478bdstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 927c478bdstevel@tonic-gate 937c478bdstevel@tonic-gateinclude ../Makefile.lp.msg 947c478bdstevel@tonic-gate 957c478bdstevel@tonic-gateFRC: 96