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 2007 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 32include ../../Makefile.lp 33 34CPPFLAGS = -D_REENTRANT -I. -I$(LPINC) $(CPPFLAGS.master) 35 36SRCS= 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 56OBJS= $(SRCS:.c=.o) 57 58LPLIBS= $(LIBACC) \ 59 $(LIBCLS) \ 60 $(LIBMSG) \ 61 $(LIBPRT) \ 62 $(LIBFRM) \ 63 $(LIBREQ) \ 64 $(LIBOAM) \ 65 $(LIBLP) 66 67SYSLIBS= -lcurses 68 69LDLIBS += $(ZLAZYLOAD) -lsecdb $(ZNOLAZYLOAD) $(LPLIBS) \ 70 $(SYSLIBS) $(I18N) 71LDFLAGS += $(MAPFILE.NGB:%=-M%) 72 73PROG= lpadmin 74 75 76#ROOTSYMLINK= $(ROOTLIBPROG) 77 78POFILE= lp_cmd_lpadmin.po 79 80.KEEP_STATE: 81 82all: $(PROG) 83 84$(PROG): $(OBJS) $(MAPFILE.NGB) 85 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 86 $(POST_PROCESS) 87 88install: all $(ROOTLIBLPLOCLPROG) #$(ROOTSYMLINK) 89 90#$(ROOTSYMLINK): 91# $(RM) $@; $(SYMLINK) ../sbin/$(PROG) $@ 92 93clean: 94 $(RM) $(OBJS) 95 96clobber: clean 97 -$(RM) $(PROG) $(CLOBBERFILES) 98 99strip: 100 $(STRIP) $(PROG) 101 102lint: 103 $(LINT.c) $(SRCS) $(LDLIBS) 104 105include ../Makefile.msg 106