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