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 2008 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# cmd/lp/cmd/lpsched/lpsched/Makefile 26# 27 28PROG= lpsched 29 30include ../../Makefile.lp 31 32MANIFEST= server.xml 33SVCMETHOD= print-svc 34 35ROOTMANIFESTDIR= $(ROOTSVCAPPLICATIONPRINT) 36 37PURIFYOPTS = -logfile=/tmp/errs.%p 38PURIFY = purify $(PURIFYOPTS) 39 40 41# Doing -DDEBUG allows some nice log files to be generated 42# with the -d option. 43 44CPPFLAGS = -I. -I$(LPINC) $(CPPFLAGS.master) 45 46HDRS= \ 47 nodes.h \ 48 dispatch.h \ 49 validate.h \ 50 lpsched.h 51 52SRCS= \ 53 alerts.c \ 54 cancel.c \ 55 daisyforms.c \ 56 disena.c \ 57 disp1.c \ 58 disp2.c \ 59 disp3.c \ 60 disp4.c \ 61 disp5.c \ 62 disptab.c \ 63 dowait.c \ 64 exec.c \ 65 faults.c \ 66 files.c \ 67 flt.c \ 68 fncs.c \ 69 getkey.c \ 70 init.c \ 71 log.c \ 72 lpfsck.c \ 73 lpsched.c \ 74 msgs.c \ 75 notify.c \ 76 pickfilter.c \ 77 ports.c \ 78 requeue.c \ 79 rstatus.c \ 80 schedule.c \ 81 status.c \ 82 terminate.c \ 83 validate.c 84 85OBJS= $(SRCS:.c=.o) 86 87 88LPLIBS = \ 89 $(LIBMSG) \ 90 $(LIBFRM) \ 91 $(LIBREQ) \ 92 $(LIBPRT) \ 93 $(LIBCLS) \ 94 $(LIBACC) \ 95 $(LIBFLT) \ 96 $(LIBUSR) \ 97 $(LIBOAM) \ 98 $(LIBLP) \ 99 $(LIBSEC) 100 101SYSLIBS= -lcurses -lgen -lcurses -lnsl -ltsol -lsecdb -lbsm 102 103LDLIBS += $(LPLIBS) $(SYSLIBS) $(LDSTACKPROTECT) 104 105POFILE= lp_cmd_lpsched.po 106 107.KEEP_STATE: 108 109all: $(PROG) 110 111$(PROG): $(OBJS) $(LPLIBS) 112 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 113 $(POST_PROCESS) 114 115$(PROG).pure: $(OBJS) $(LPLIBS) 116 $(PURIFY) $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 117 $(POST_PROCESS) 118 119install: all $(ROOTLIBLPLOCLPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD) 120 121 122check: $(CHKMANIFEST) 123 124 125clean: 126 $(RM) $(OBJS) 127 128strip: 129 $(STRIP) $(PROG) 130 131lint: lint_SRCS 132 133include ../Makefile.msg 134 135FRC: 136 137include ../../../Makefile.targ 138