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) 34 35SRCS= chkopts.c \ 36 default.c \ 37 do_align.c \ 38 do_fault.c \ 39 do_mount.c \ 40 do_printer.c \ 41 do_pwheel.c \ 42 done.c \ 43 fromclass.c \ 44 ismodel.c \ 45 lpadmin.c \ 46 options.c \ 47 output.c \ 48 pick_opts.c \ 49 rmdest.c \ 50 send_message.c \ 51 signals.c \ 52 startup.c \ 53 usage.c 54 55OBJS= $(SRCS:.c=.o) 56 57LPLIBS= $(LIBACC) \ 58 $(LIBCLS) \ 59 $(LIBMSG) \ 60 $(LIBPRT) \ 61 $(LIBFRM) \ 62 $(LIBREQ) \ 63 $(LIBOAM) \ 64 $(LIBLP) 65 66SYSLIBS= -lcurses 67 68LDLIBS += $(LPLIBS) $(SYSLIBS) $(I18N) 69 70PROG= lpadmin 71 72 73#ROOTSYMLINK= $(ROOTLIBPROG) 74 75POFILE= lp_cmd_lpadmin.po 76 77.KEEP_STATE: 78 79all: $(PROG) 80 81$(PROG): $(OBJS) 82 $(LINK.c) $(OBJS) -o $@ $(LDLIBS) 83 $(POST_PROCESS) 84 85install: all $(ROOTLIBLPLOCLPROG) #$(ROOTSYMLINK) 86 87#$(ROOTSYMLINK): 88# $(RM) $@; $(SYMLINK) ../sbin/$(PROG) $@ 89 90clean: 91 $(RM) $(OBJS) 92 93clobber: clean 94 -$(RM) $(PROG) $(CLOBBERFILES) 95 96strip: 97 $(STRIP) $(PROG) 98 99lint: 100 $(LINT.c) $(SRCS) $(LDLIBS) 101 102include ../Makefile.msg 103