Home | History | Annotate | Download | only in lpadmin
      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 #
     23 #
     24 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
     25 # Use is subject to license terms.
     26 #
     27 # ident	"%Z%%M%	%I%	%E% SMI"
     28 #
     29 # cmd/lp/cmd/lpadmin/Makefile
     30 #
     31 
     32 include		../../Makefile.lp
     33 
     34 CPPFLAGS =	-D_REENTRANT -I. -I$(LPINC) $(CPPFLAGS.master)
     35 
     36 SRCS=		chkopts.c	\
     37 		default.c	\
     38 		do_align.c	\
     39 		do_fault.c	\
     40 		do_mount.c	\
     41 		do_printer.c	\
     42 		do_pwheel.c	\
     43 		done.c		\
     44 		fromclass.c	\
     45 		ismodel.c	\
     46 		lpadmin.c	\
     47 		options.c	\
     48 		output.c	\
     49 		pick_opts.c	\
     50 		rmdest.c	\
     51 		send_message.c	\
     52 		signals.c	\
     53 		startup.c	\
     54 		usage.c
     55 
     56 OBJS=		$(SRCS:.c=.o)
     57 
     58 LPLIBS=		$(LIBACC)	\
     59 		$(LIBCLS)	\
     60 		$(LIBMSG)	\
     61 		$(LIBPRT)	\
     62 		$(LIBFRM)	\
     63 		$(LIBREQ)	\
     64 		$(LIBOAM)	\
     65 		$(LIBLP)
     66 
     67 SYSLIBS=	-lcurses
     68 
     69 LDLIBS +=	-lsecdb $(LPLIBS) $(SYSLIBS) $(I18N)
     70 LDFLAGS +=	$(MAPFILE.NGB:%=-M%)
     71 
     72 PROG=		lpadmin
     73 
     74 
     75 #ROOTSYMLINK=	$(ROOTLIBPROG)
     76 
     77 POFILE=		lp_cmd_lpadmin.po
     78 
     79 .KEEP_STATE:
     80 
     81 all:		$(PROG)
     82 
     83 $(PROG):	$(OBJS) $(MAPFILE.NGB)
     84 		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
     85 		$(POST_PROCESS)
     86 
     87 install:	all $(ROOTLIBLPLOCLPROG) #$(ROOTSYMLINK)
     88 
     89 #$(ROOTSYMLINK):
     90 #		$(RM) $@; $(SYMLINK) ../sbin/$(PROG) $@
     91 
     92 clean:
     93 		$(RM) $(OBJS)
     94 
     95 clobber: clean
     96 		-$(RM) $(PROG) $(CLOBBERFILES)
     97 
     98 strip:
     99 		$(STRIP) $(PROG)
    100 
    101 lint:
    102 		$(LINT.c) $(SRCS) $(LDLIBS)
    103 
    104 include		../Makefile.msg
    105