Home | History | Annotate | Download | only in print
      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 # cmd/print/Makefile.sp
     27 # Common makefile definitions (should be) used by all print(lp) makefiles
     28 #
     29 
     30 include		$(SRC)/cmd/Makefile.cmd
     31 
     32 LPROOT=		$(SRC)/cmd/lp
     33 NPRTROOT=	$(LPROOT)
     34 ROOTVAR=	$(ROOT)/var
     35 ROOTVARSP=	$(ROOT)/var/spool
     36 ROOTVARSPOOLPRINT=	$(ROOTVARSP)/print
     37 
     38 ROOTINIT_D=	$(ROOTETC)/init.d
     39 ROOTRC0_D=	$(ROOTETC)/rc0.d
     40 ROOTRCS_D=	$(ROOTETC)/rcS.d
     41 ROOTRC1_D=	$(ROOTETC)/rc1.d
     42 ROOTRC2_D=	$(ROOTETC)/rc2.d
     43 
     44 
     45 ROOTETCLP=	$(ROOTETC)/lp
     46 ROOTLIBLP=	$(ROOTLIB)/lp
     47 ROOTBINLP=	$(ROOTBIN)/lp
     48 ROOTLIBLPPOST =	$(ROOTLIBLP)/postscript
     49 ROOTLOCALLP=	$(ROOTLIBLP)/local
     50 ROOTLIBPRINT=	$(ROOTLIB)/print
     51 ROOTLIBPRINTBIN=	$(ROOTLIBPRINT)/bin
     52 
     53 ROOTUSRUCB=	$(ROOT)/usr/ucb
     54 
     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	=	0755
     64 
     65 
     66 INC	=	$(ROOT)/usr/include
     67 INCSYS  =       $(INC)/sys
     68 
     69 LPINC	=	$(SRC)/include
     70 #NPRTINC	=	$(NPRTROOT)/include
     71 NPRTINC	=	$(SRC)/lib/print/libprint/common
     72 LPLIB	=	$(SRC)/lib
     73 LDLIBS +=	-L$(LPLIB)
     74 
     75 
     76 LIBNPRT =       -L$(ROOT)/usr/lib -lprint
     77 
     78 # lint definitions
     79 
     80 LINTFLAGS	+=	-L $(SRC)/lib/print -lprint -lnsl -lsocket 
     81 
     82 all	:=TARGET= all
     83 install	:=TARGET= install
     84 clean	:=TARGET= clean
     85 clobber	:=TARGET= clobber
     86 lint	:=TARGET= lint
     87 strip	:=TARGET= strip
     88 _msg	:=TARGET= _msg
     89 
     90 ROOTLIBLPPROG=	$(PROG:%=$(ROOTLIBLP)/%)
     91 ROOTBINLPPROG=	$(PROG:%=$(ROOTBINLP)/%)
     92 ROOTETCLPPROG=	$(PROG:%=$(ROOTETCLP)/%)
     93 ROOTUSRUCBPROG=	$(PROG:%=$(ROOTUSRUCB)/%)
     94 ROOTLOCALLPPROG=	$(PROG:%=$(ROOTLOCALLP)/%)
     95 ROOTLIBLPPOSTPROG=	$(PROG:%=$(ROOTLIBLPPOST)/%)
     96 ROOTLIBPRINTPROG=	$(PROG:%=$(ROOTLIBPRINT)/%)
     97 
     98 $(ROOTLIBLP)/%	\
     99 $(ROOTBINLP)/%	\
    100 $(ROOTETCLP)/%	\
    101 $(ROOTUSRUCB)/%	\
    102 $(ROOTLOCALLP)/% \
    103 $(ROOTLIBLPPOST)/% \
    104 $(ROOTLIBPRINT)/% :	%
    105 		$(INS.file)
    106