xref: /illumos-gate/usr/src/cmd/lp/cmd/lpsched/Makefile (revision a61ed2ce7a86a4d6428f2a83eb4739fae945447e)
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
30PROG=		lpsched
31
32include		../../Makefile.lp
33
34MANIFEST=	server.xml
35SVCMETHOD=	print-svc
36
37ROOTMANIFESTDIR=	$(ROOTSVCAPPLICATIONPRINT)
38
39PURIFYOPTS      = -logfile=/tmp/errs.%p
40PURIFY          = purify $(PURIFYOPTS)
41
42
43# Doing -DDEBUG allows some nice log files to be generated
44# with the -d option.
45
46CPPFLAGS =	-I. -I$(LPINC) $(CPPFLAGS.master)
47
48HDRS=				\
49		nodes.h		\
50		dispatch.h	\
51		validate.h	\
52		lpsched.h
53
54SRCS=				\
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
87OBJS=		$(SRCS:.c=.o)
88
89
90LPLIBS =			\
91		$(LIBMSG)	\
92		$(LIBFRM)	\
93		$(LIBREQ)	\
94		$(LIBPRT)	\
95		$(LIBCLS)	\
96		$(LIBACC)	\
97		$(LIBFLT)	\
98		$(LIBUSR)	\
99		$(LIBOAM)	\
100		$(LIBLP)	\
101		$(LIBSEC)
102
103SYSLIBS=	-lcurses -lgen -lcurses -lnsl -ltsol -lsecdb -lbsm
104
105LDLIBS +=	$(LPLIBS) $(SYSLIBS)
106
107POFILE=		lp_cmd_lpsched.po
108
109.KEEP_STATE:
110
111all:		$(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
121install:	all $(ROOTLIBLPLOCLPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
122
123
124check:	$(CHKMANIFEST)
125
126
127clean:
128		$(RM) $(OBJS)
129
130strip:
131		$(STRIP) $(PROG)
132
133lint:		lint_SRCS
134
135include		../Makefile.msg
136
137FRC:
138
139include		../../../Makefile.targ
140