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