Makefile.com revision b6805bf78d2bbbeeaea8909a05623587b42d58b3
355b4669e025ff377602b6fc7caaf30dbc218371jacobs#
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# CDDL HEADER START
355b4669e025ff377602b6fc7caaf30dbc218371jacobs#
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# The contents of this file are subject to the terms of the
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# Common Development and Distribution License (the "License").
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# You may not use this file except in compliance with the License.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs#
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# or http://www.opensolaris.org/os/licensing.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# See the License for the specific language governing permissions
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# and limitations under the License.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs#
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# When distributing Covered Code, include this CDDL HEADER in each
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# If applicable, add the following below this CDDL HEADER, with the
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# fields enclosed by brackets "[]" replaced with your own identifying
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# information: Portions Copyright [yyyy] [name of copyright owner]
355b4669e025ff377602b6fc7caaf30dbc218371jacobs#
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# CDDL HEADER END
355b4669e025ff377602b6fc7caaf30dbc218371jacobs#
355b4669e025ff377602b6fc7caaf30dbc218371jacobs#
24fe0b3bf671e123467ce1df0b67cadd3614c8e4jmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# Use is subject to license terms.
355b4669e025ff377602b6fc7caaf30dbc218371jacobs#
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobsLIBRARY = psm-lpd.a
355b4669e025ff377602b6fc7caaf30dbc218371jacobsVERS = .1
355b4669e025ff377602b6fc7caaf30dbc218371jacobsCOMMON_OBJS = lpd-misc.o
355b4669e025ff377602b6fc7caaf30dbc218371jacobsOBJECTS = job.o library.o lpd-cancel.o lpd-job.o lpd-query.o printer.o \
355b4669e025ff377602b6fc7caaf30dbc218371jacobs service.o $(COMMON_OBJS)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobsinclude ../../../Makefile.lib
355b4669e025ff377602b6fc7caaf30dbc218371jacobsinclude ../../../Makefile.rootfs
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
f808c858fa61e7769218966759510a8b1190dfcfrafSRCDIR = ../common
f808c858fa61e7769218966759510a8b1190dfcfraf
355b4669e025ff377602b6fc7caaf30dbc218371jacobsROOTLIBDIR= $(ROOT)/usr/lib/print
355b4669e025ff377602b6fc7caaf30dbc218371jacobsROOTLIBDIR64= $(ROOT)/usr/lib/print/$(MACH)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobsEXTRALINKS= $(ROOTLIBDIR)/psm-rfc-1179.so
355b4669e025ff377602b6fc7caaf30dbc218371jacobs$(EXTRALINKS): $(ROOTLINKS)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs $(RM) $@; $(SYMLINK) $(LIBLINKS) $@
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobsLIBS = $(DYNLIB)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobs$(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobsCFLAGS += $(CCVERBOSE)
355b4669e025ff377602b6fc7caaf30dbc218371jacobsCPPFLAGS += -I$(SRCDIR)
355b4669e025ff377602b6fc7caaf30dbc218371jacobsCPPFLAGS += -I../../libpapi-common/common
f808c858fa61e7769218966759510a8b1190dfcfraf
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-variable
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
f808c858fa61e7769218966759510a8b1190dfcfrafMAPFILES = $(SRCDIR)/mapfile
f808c858fa61e7769218966759510a8b1190dfcfraf
355b4669e025ff377602b6fc7caaf30dbc218371jacobsLDLIBS += -lc
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon RossCLOBBERFILES += $(PROG)
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon Ross
355b4669e025ff377602b6fc7caaf30dbc218371jacobs.KEEP_STATE:
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobsall: $(LIBS) $(PROG)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobslint: lintcheck
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobsinclude ../../../Makefile.targ
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobs#
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# NEEDED to build lpd-port
355b4669e025ff377602b6fc7caaf30dbc218371jacobs#
355b4669e025ff377602b6fc7caaf30dbc218371jacobsPROG = lpd-port
355b4669e025ff377602b6fc7caaf30dbc218371jacobsLPD_PORT_OBJS = lpd-port.o $(COMMON_OBJS)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
10144ea86a21f583d4eec553d1a18da7544ba6dejacobs$(PROG) := LDLIBS += -lsocket -lnsl -lsendfile
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobsPROG_OBJS = $(LPD_PORT_OBJS:%=pics/%)
355b4669e025ff377602b6fc7caaf30dbc218371jacobsOBJS += $(PROG_OBJS)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobsLDFLAGS.cmd = \
f6acbf7c6543dc0aab58cae1df419f0147c46d77rie $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) $(BDIRECT) \
24da5b34f49324ed742a340010ed5bd3d4e06625rie $(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobs$(PROG): $(PROG_OBJS)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs $(LINK.c) -o $@ $(PROG_OBJS) $(LDFLAGS.cmd) $(LDLIBS)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs $(POST_PROCESS)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobs# needed for the 'install' phase
355b4669e025ff377602b6fc7caaf30dbc218371jacobsROOTLIBPRINTPROG = $(PROG:%=$(ROOTLIBDIR)/%)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs$(ROOTLIBPRINTPROG) := FILEMODE = 04511
355b4669e025ff377602b6fc7caaf30dbc218371jacobs
355b4669e025ff377602b6fc7caaf30dbc218371jacobs$(ROOTLIBDIR)/%: $(ROOTLIBDIR) %
355b4669e025ff377602b6fc7caaf30dbc218371jacobs $(INS.file)
355b4669e025ff377602b6fc7caaf30dbc218371jacobs$(ROOTLIBDIR):
355b4669e025ff377602b6fc7caaf30dbc218371jacobs $(INS.dir)