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# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T 27# All Rights Reserved 28# 29# ident "%Z%%M% %I% %E% SMI" 30# 31# cmd/lp/Makefile.lp 32# Common makefile definitions (should be) used by all lp makefiles 33# 34 35include $(SRC)/cmd/Makefile.cmd 36 37LPROOT= $(SRC)/cmd/lp 38ROOTVAR= $(ROOT)/var 39ROOTVARSP= $(ROOT)/var/spool 40 41ROOTETCLP= $(ROOTETC)/lp 42ROOTLIBLP= $(ROOTLIB)/lp 43ROOTBINLP= $(ROOTBIN)/lp 44ROOTLIBLPPOST = $(ROOTLIBLP)/postscript 45ROOTLIBLPLOCL = $(ROOTLIBLP)/local 46 47ROOTUSRUCB= $(ROOT)/usr/ucb 48 49# 50# Typical owner and group for LP things. These can be overridden 51# in the individual makefiles. 52# 53OWNER = root 54GROUP = lp 55SUPER = root 56 57# 58# $(EMODES): Modes for executables 59# $(SMODES): Modes for setuid executables 60# $(DMODES): Modes for directories 61# 62EMODES = 0555 63SMODES = 04555 64DMODES = 0775 65 66 67INC = $(ROOT)/usr/include 68INCSYS = $(INC)/sys 69 70LPINC = $(SRC)/cmd/lp/include 71LPLIB = $(SRC)/cmd/lp/lib 72 73LIBACC = $(LPLIB)/access/liblpacc.a 74LIBCLS = $(LPLIB)/class/liblpcls.a 75LIBFLT = $(LPLIB)/filters/liblpflt.a 76LIBFRM = $(LPLIB)/forms/liblpfrm.a 77LIBLP = $(LPLIB)/lp/liblp.a 78LIBMSG = $(LPLIB)/msgs/liblpmsg.a 79LIBOAM = $(LPLIB)/oam/liblpoam.a 80LIBPRT = $(LPLIB)/printers/liblpprt.a 81LIBREQ = $(LPLIB)/requests/liblpreq.a 82LIBSEC = $(LPLIB)/secure/liblpsec.a 83LIBSYS = $(LPLIB)/systems/liblpsys.a 84LIBUSR = $(LPLIB)/users/liblpusr.a 85 86LINTACC = $(LPLIB)/access/llib-llpacc.ln 87LINTCLS = $(LPLIB)/class/llib-llpcls.ln 88LINTFLT = $(LPLIB)/filters/llib-llpflt.ln 89LINTFRM = $(LPLIB)/forms/llib-llpfrm.ln 90LINTLP = $(LPLIB)/lp/llib-llp.ln 91LINTMSG = $(LPLIB)/msgs/llib-llpmsg.ln 92LINTOAM = $(LPLIB)/oam/llib-llpoam.ln 93LINTPRT = $(LPLIB)/printers/llib-llpprt.ln 94LINTREQ = $(LPLIB)/requests/llib-llpreq.ln 95LINTSEC = $(LPLIB)/secure/llib-llpsec.ln 96LINTSYS = $(LPLIB)/systems/llib-llpsys.ln 97LINTUSR = $(LPLIB)/users/llib-llpusr.ln 98 99$(__GNUC)CFLAGS += -_gcc=-fwritable-strings -_gcc=-Wno-sequence-points 100$(__GNUC)CFLAGS64 += -_gcc=-fwritable-strings -_gcc=-Wno-sequence-points 101 102all:= TARGET= all 103install:= TARGET= install 104clean:= TARGET= clean 105clobber:= TARGET= clobber 106lint:= TARGET= lint 107strip:= TARGET= strip 108catalog:= TARGET= catalog 109_msg:= TARGET= catalog 110 111ROOTLIBLPPROG= $(PROG:%=$(ROOTLIBLP)/%) 112ROOTBINLPPROG= $(PROG:%=$(ROOTBINLP)/%) 113ROOTETCLPPROG= $(PROG:%=$(ROOTETCLP)/%) 114ROOTUSRUCBPROG= $(PROG:%=$(ROOTUSRUCB)/%) 115ROOTLIBLPPOSTPROG= $(PROG:%=$(ROOTLIBLPPOST)/%) 116ROOTLIBLPLOCLPROG= $(PROG:%=$(ROOTLIBLPLOCL)/%) 117 118$(ROOTLIBLP)/% \ 119$(ROOTBINLP)/% \ 120$(ROOTETCLP)/% \ 121$(ROOTUSRUCB)/% \ 122$(ROOTLIBLPPOST)/% $(ROOTLIBLPLOCL)/%: % 123 $(INS.file) 124