1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# ident "%Z%%M% %I% %E% SMI" 26# 27# cmd/lp/lib/papi/Makefile 28# 29 30LIBRARY = psm-lpsched.a 31VERS=.1 32 33LPSCHED_OBJS = lpsched-msgs.o lpsched-service.o lpsched-printers.o \ 34 lpsched-jobs.o lpsched-misc.o 35OBJECTS = $(LPSCHED_OBJS) service.o printer.o job.o ppd.o library.o 36 37 38include ../../../../lib/Makefile.lib 39include ../../Makefile.lp 40 41ROOTLIBDIR= $(ROOT)/usr/lib/print 42 43CPPFLAGS = -I. 44CPPFLAGS += -I$(LPINC) 45CPPFLAGS += -I$(SRC)/lib/print/libpapi-common/common 46CPPFLAGS += -D_REENTRANT 47CPPFLAGS += $(ENVCPPFLAGS1) 48CPPFLAGS += $(ENVCPPFLAGS2) 49LDLIBS += -lc 50LDLIBS += -L$(SRC)/cmd/lp/lib/msgs -llpmsg 51LDLIBS += -L$(SRC)/cmd/lp/lib/printers -llpprt 52LDLIBS += -L$(SRC)/cmd/lp/lib/class -llpcls 53LDLIBS += -L$(SRC)/cmd/lp/lib/requests -llpreq 54LDLIBS += -L$(SRC)/cmd/lp/lib/secure -llpsec 55LDLIBS += -L$(SRC)/cmd/lp/lib/forms -llpfrm 56LDLIBS += -L$(SRC)/cmd/lp/lib/access -llpacc 57LDLIBS += -L$(SRC)/cmd/lp/lib/lp -llp 58 59MAPFILES= mapfile 60MAPOPTS= $(MAPFILES:%=-M%) 61DYNFLAGS += $(BDIRECT) $(MAPOPTS) 62 63 64LIBS = $(DYNLIB) 65SRCS= $(OBJECTS:%.o=%.c) 66 67#${ROOTLIBDIR}: 68# $(INS.dir) 69 70POFILE = lp_lib_papi_psm.po 71 72.KEEP_STATE: 73 74all: $(LIBS) 75 76_msg: $(POFILE) 77 78install: $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS) 79 80cstyle: 81 $(CSTYLE) $(SRCS) 82 83lint: lintcheck 84 85include ../../../../lib/Makefile.targ 86include ../Makefile.msg 87