12264Sjacobs# 22264Sjacobs# CDDL HEADER START 32264Sjacobs# 42264Sjacobs# The contents of this file are subject to the terms of the 52264Sjacobs# Common Development and Distribution License (the "License"). 62264Sjacobs# You may not use this file except in compliance with the License. 72264Sjacobs# 82264Sjacobs# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 92264Sjacobs# or http://www.opensolaris.org/os/licensing. 102264Sjacobs# See the License for the specific language governing permissions 112264Sjacobs# and limitations under the License. 122264Sjacobs# 132264Sjacobs# When distributing Covered Code, include this CDDL HEADER in each 142264Sjacobs# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 152264Sjacobs# If applicable, add the following below this CDDL HEADER, with the 162264Sjacobs# fields enclosed by brackets "[]" replaced with your own identifying 172264Sjacobs# information: Portions Copyright [yyyy] [name of copyright owner] 182264Sjacobs# 192264Sjacobs# CDDL HEADER END 202264Sjacobs# 212264Sjacobs# 22*10207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 232264Sjacobs# Use is subject to license terms. 242264Sjacobs# 252264Sjacobs 262264SjacobsLIBRARY = psm-lpd.a 272264SjacobsVERS = .1 282264SjacobsCOMMON_OBJS = lpd-misc.o 292264SjacobsOBJECTS = job.o library.o lpd-cancel.o lpd-job.o lpd-query.o printer.o \ 302264Sjacobs service.o $(COMMON_OBJS) 312264Sjacobs 322264Sjacobsinclude ../../../Makefile.lib 332264Sjacobsinclude ../../../Makefile.rootfs 342264Sjacobs 352522SrafSRCDIR = ../common 362522Sraf 372264SjacobsROOTLIBDIR= $(ROOT)/usr/lib/print 382264SjacobsROOTLIBDIR64= $(ROOT)/usr/lib/print/$(MACH) 392264Sjacobs 402264SjacobsEXTRALINKS= $(ROOTLIBDIR)/psm-rfc-1179.so 412264Sjacobs$(EXTRALINKS): $(ROOTLINKS) 422264Sjacobs $(RM) $@; $(SYMLINK) $(LIBLINKS) $@ 432264Sjacobs 442264SjacobsLIBS = $(DYNLIB) 452264Sjacobs 462264Sjacobs$(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC) 472264Sjacobs 482264SjacobsCFLAGS += $(CCVERBOSE) 492264SjacobsCPPFLAGS += -I$(SRCDIR) 502264SjacobsCPPFLAGS += -I../../libpapi-common/common 512522Sraf 522522SrafMAPFILES = $(SRCDIR)/mapfile 532522Sraf 542264SjacobsLDLIBS += -lc 552264Sjacobs 562264Sjacobs.KEEP_STATE: 572264Sjacobs 582264Sjacobsall: $(LIBS) $(PROG) 592264Sjacobs 602264Sjacobslint: lintcheck 612264Sjacobs 622264Sjacobsinclude ../../../Makefile.targ 632264Sjacobs 642264Sjacobs# 652264Sjacobs# NEEDED to build lpd-port 662264Sjacobs# 672264SjacobsPROG = lpd-port 682264SjacobsLPD_PORT_OBJS = lpd-port.o $(COMMON_OBJS) 692264Sjacobs 704275Sjacobs$(PROG) := LDLIBS += -lsocket -lnsl -lsendfile 712264Sjacobs 722264SjacobsPROG_OBJS = $(LPD_PORT_OBJS:%=pics/%) 732264SjacobsOBJS += $(PROG_OBJS) 742264Sjacobs 752264SjacobsLDFLAGS.cmd = \ 765905Srie $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) $(BDIRECT) \ 774271Srie $(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) 782264Sjacobs 792264Sjacobs$(PROG): $(PROG_OBJS) 802264Sjacobs $(LINK.c) -o $@ $(PROG_OBJS) $(LDFLAGS.cmd) $(LDLIBS) 812264Sjacobs $(POST_PROCESS) 822264Sjacobs 832264Sjacobs# needed for the 'install' phase 842264SjacobsROOTLIBPRINTPROG = $(PROG:%=$(ROOTLIBDIR)/%) 852264Sjacobs$(ROOTLIBPRINTPROG) := FILEMODE = 04511 862264Sjacobs 872264Sjacobs$(ROOTLIBDIR)/%: $(ROOTLIBDIR) % 882264Sjacobs $(INS.file) 892264Sjacobs$(ROOTLIBDIR): 902264Sjacobs $(INS.dir) 91