xref: /illumos-gate/usr/src/cmd/lp/cmd/lpadmin/Makefile (revision 032624d56c174c5c55126582b32e314a6af15522)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28# cmd/lp/cmd/lpadmin/Makefile
29#
30
31include		../../Makefile.lp
32
33CPPFLAGS =	-D_REENTRANT -I. -I$(LPINC) $(CPPFLAGS.master)
34CFLAGS +=	-_gcc=-fwritable-strings
35CFLAGS64 +=	-_gcc=-fwritable-strings
36
37SRCS=		chkopts.c	\
38		default.c	\
39		do_align.c	\
40		do_fault.c	\
41		do_mount.c	\
42		do_printer.c	\
43		do_pwheel.c	\
44		done.c		\
45		fromclass.c	\
46		ismodel.c	\
47		lpadmin.c	\
48		options.c	\
49		output.c	\
50		pick_opts.c	\
51		rmdest.c	\
52		send_message.c	\
53		signals.c	\
54		startup.c	\
55		usage.c
56
57OBJS=		$(SRCS:.c=.o)
58
59LPLIBS=		$(LIBACC)	\
60		$(LIBCLS)	\
61		$(LIBMSG)	\
62		$(LIBPRT)	\
63		$(LIBFRM)	\
64		$(LIBREQ)	\
65		$(LIBOAM)	\
66		$(LIBLP)
67
68SYSLIBS=	-lcurses
69
70LDLIBS +=	$(LPLIBS) $(SYSLIBS) $(I18N)
71
72PROG=		lpadmin
73
74
75#ROOTSYMLINK=	$(ROOTLIBPROG)
76
77POFILE=		lp_cmd_lpadmin.po
78
79.KEEP_STATE:
80
81all:		$(PROG)
82
83$(PROG):	$(OBJS)
84		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
85		$(POST_PROCESS)
86
87install:	all $(ROOTLIBLPLOCLPROG) #$(ROOTSYMLINK)
88
89#$(ROOTSYMLINK):
90#		$(RM) $@; $(SYMLINK) ../sbin/$(PROG) $@
91
92clean:
93		$(RM) $(OBJS)
94
95clobber: clean
96		-$(RM) $(PROG) $(CLOBBERFILES)
97
98strip:
99		$(STRIP) $(PROG)
100
101lint:
102		$(LINT.c) $(SRCS) $(LDLIBS)
103
104include		../Makefile.msg
105