Home | History | Annotate | Download | only in foomatic-filters
      1 #
      2 #
      3 # CDDL HEADER START
      4 #
      5 # The contents of this file are subject to the terms of the
      6 # Common Development and Distribution License (the "License").
      7 # You may not use this file except in compliance 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 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
     23 # Use is subject to license terms.
     24 #
     25 #ident	"@(#)Makefile.sfw	1.10	08/02/09 SMI"
     26 #
     27 
     28 VER=foomatic-filters-3.0.2
     29 
     30 include ../Makefile.cmd
     31 
     32 SFW_PATH="$(SPRO_VROOT)/bin:/usr/perl5/bin:/usr/sfw/bin:/usr/bin:$(PATH)"
     33 
     34 all: $(VER)/config.status
     35 	(cd $(VER); env \
     36 	    "CC=$(CC)" \
     37 	    "CXX=$(CCC)" \
     38 	    PATH=$(SFW_PATH) \
     39 	    "LD_OPTIONS=-L/usr/sfw/lib -R/usr/sfw/lib" \
     40 	    MAKE="$(CCSMAKE) SHELL=/bin/bash" \
     41 	    SRC=. \
     42 	    $(CCSMAKE) SHELL=/bin/bash)
     43 	@find . -name core -exec rm -f {} \;
     44 
     45 install: all
     46 	$(SH) ./install-sfw
     47 
     48 check: $(VER)/config.status
     49 
     50 
     51 $(VER)/config.status: $(VER)/configure
     52 	(cd $(VER); env \
     53 	    "CC=$(CC)" \
     54 	    "CXX=$(CCC)" \
     55 	    PATH=$(SFW_PATH) \
     56 	    "LD_OPTIONS=-L/usr/sfw/lib -R/usr/sfw/lib" \
     57 	    CONFIG_SHELL=/bin/bash \
     58 	    A2PS=$(ROOT)/usr/bin/a2ps \
     59 	    MAKE="$(CCSMAKE) SHELL=/bin/bash" \
     60 	./configure --sysconfdir=/etc/sfw \
     61 		    --prefix=/usr/lib/lp \
     62 		    --with-echo=wecho \
     63 		    --with-file-converter="a2ps -1 -q -c -B @@--medium=@@PAGESIZE@@ -o -" \
     64 		    --with-execpath=/usr/lib/lp/bin:/usr/sfw/bin:/usr/bin:/bin )
     65  
     66 #
     67 #
     68 
     69 $(VER)/configure: $(VER).tar.bz2
     70 	/usr/bin/bzip2 -dc $(VER).tar.bz2 | $(GTAR) xpf - --no-same-owner
     71 	touch $(VER)/configure
     72 	find $(VER) -type d -exec /usr/bin/chmod 755 "{}" \;
     73 	find $(VER) -type f -exec /usr/bin/chmod ugo+r "{}" \;
     74 
     75 clean:
     76 	-rm -rf $(VER)
     77 
     78 include ../Makefile.targ
     79 
     80 FRC:
     81