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