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 28LIBRARY = psm-lpsched.a 29VERS=.1 30 31LPSCHED_OBJS = lpsched-msgs.o lpsched-service.o lpsched-printers.o \ 32 lpsched-jobs.o lpsched-misc.o 33OBJECTS = $(LPSCHED_OBJS) service.o printer.o job.o ppd.o library.o 34 35 36include ../../../../lib/Makefile.lib 37include ../../Makefile.lp 38 39ROOTLIBDIR= $(ROOT)/usr/lib/print 40 41CPPFLAGS = -I. 42CPPFLAGS += -I$(LPINC) 43CPPFLAGS += -I$(SRC)/lib/print/libpapi-common/common 44CPPFLAGS += -D_REENTRANT 45CPPFLAGS += $(ENVCPPFLAGS1) 46CPPFLAGS += $(ENVCPPFLAGS2) 47LDLIBS += -lc 48LDLIBS += -L$(SRC)/cmd/lp/lib/msgs -llpmsg 49LDLIBS += -L$(SRC)/cmd/lp/lib/printers -llpprt 50LDLIBS += -L$(SRC)/cmd/lp/lib/class -llpcls 51LDLIBS += -L$(SRC)/cmd/lp/lib/requests -llpreq 52LDLIBS += -L$(SRC)/cmd/lp/lib/secure -llpsec 53LDLIBS += -L$(SRC)/cmd/lp/lib/forms -llpfrm 54LDLIBS += -L$(SRC)/cmd/lp/lib/access -llpacc 55LDLIBS += -L$(SRC)/cmd/lp/lib/lp -llp 56 57MAPFILES = mapfile 58 59DYNFLAGS += $(BDIRECT) 60 61LIBS = $(DYNLIB) 62SRCS= $(OBJECTS:%.o=%.c) 63 64#${ROOTLIBDIR}: 65# $(INS.dir) 66 67POFILE = lp_lib_papi_psm.po 68 69.KEEP_STATE: 70 71all: $(LIBS) 72 73_msg: $(POFILE) 74 75install: $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS) 76 77cstyle: 78 $(CSTYLE) $(SRCS) 79 80lint: lintcheck 81 82include ../../../../lib/Makefile.targ 83include ../Makefile.msg 84