Home | History | Annotate | Download | only in papi
      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 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
     23 # Use is subject to license terms.
     24 #
     25 # ident	"%Z%%M%	%I%	%E% SMI"
     26 #
     27 
     28 LIBRARY =	psm-lpsched.a
     29 VERS=.1
     30 
     31 LPSCHED_OBJS =	lpsched-msgs.o lpsched-service.o lpsched-printers.o \
     32 		lpsched-jobs.o lpsched-misc.o
     33 OBJECTS =	$(LPSCHED_OBJS) service.o printer.o job.o ppd.o library.o
     34 		
     35 
     36 include		../../../../lib/Makefile.lib
     37 include         ../../Makefile.lp
     38 
     39 ROOTLIBDIR=	$(ROOT)/usr/lib/print
     40 
     41 CPPFLAGS =	-I.
     42 CPPFLAGS +=	-I$(LPINC)
     43 CPPFLAGS +=	-I$(SRC)/lib/print/libpapi-common/common
     44 CPPFLAGS +=	-D_REENTRANT
     45 CPPFLAGS +=	$(ENVCPPFLAGS1)
     46 CPPFLAGS +=	$(ENVCPPFLAGS2)
     47 LDLIBS +=	-lcurses -lc
     48 LDLIBS +=	-L$(SRC)/cmd/lp/lib/msgs -llpmsg
     49 LDLIBS +=	-L$(SRC)/cmd/lp/lib/printers -llpprt
     50 LDLIBS +=	-L$(SRC)/cmd/lp/lib/class -llpcls
     51 LDLIBS +=	-L$(SRC)/cmd/lp/lib/requests -llpreq
     52 LDLIBS +=	-L$(SRC)/cmd/lp/lib/secure -llpsec
     53 LDLIBS +=	-L$(SRC)/cmd/lp/lib/forms -llpfrm
     54 LDLIBS +=	-L$(SRC)/cmd/lp/lib/access -llpacc
     55 LDLIBS +=	-L$(SRC)/cmd/lp/lib/lp -llp
     56 
     57 MAPFILES =	mapfile
     58 
     59 LIBS = $(DYNLIB)
     60 SRCS= $(OBJECTS:%.o=%.c)
     61  
     62 #${ROOTLIBDIR}:
     63 #	$(INS.dir)
     64 
     65 POFILE =	lp_lib_papi_psm.po
     66 
     67 .KEEP_STATE:
     68 
     69 all:		$(LIBS) 
     70 
     71 _msg:	$(POFILE)
     72 
     73 install:	$(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
     74 
     75 cstyle:
     76 		$(CSTYLE) $(SRCS)
     77 
     78 lint:	lintcheck
     79 
     80 include		../../../../lib/Makefile.targ
     81 include		../Makefile.msg
     82