Home | History | Annotate | Download | only in elinks
      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 # ident	"@(#)Makefile.sfw	1.2	09/09/03 SMI"
     27 #
     28 
     29 include ../Makefile.cmd
     30 
     31 VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
     32 TARBALL = $(VER).tar.bz2
     33 
     34 # Enable BitTorrent protocol support
     35 CONFIGURE_OPTIONS += --enable-bittorrent
     36 
     37 # Enable HTML highlighting
     38 CONFIGURE_OPTIONS += --enable-html-highlight
     39 
     40 # Enable 256 color support
     41 CONFIGURE_OPTIONS += --enable-256-colors
     42 
     43 all: $(VER)/config.status
     44 	(cd $(VER); env - \
     45 	    "CC=$(CC)" \
     46 	    "CFLAGS=$(CFLAGS)" \
     47 	    "PATH=$(SFW_PATH)" \
     48 	    "MAKE=$(GMAKE)" \
     49 	    $(GMAKE) all)
     50 
     51 install: all
     52 	SRCDIR=$(VER) $(SHELL) ./install-sfw
     53 
     54 $(VER)/config.status: $(VER)/configure
     55 	(cd $(VER); env - \
     56 	    "CC=$(CC)" \
     57 	    "CFLAGS=$(CFLAGS)" \
     58 	    "PATH=$(SFW_PATH)" \
     59 	    "MAKE=$(GMAKE)" \
     60 	    $(SH) ./configure $(CONFIGURE_OPTIONS))
     61 
     62 $(VER)/configure: $(TARBALL)
     63 	$(GTAR) xjpf $(TARBALL) --no-same-owner;
     64 	gpatch -p0 < Makefile.lib.patch
     65 	touch $(VER)/configure
     66 
     67 
     68 clean:
     69 	-rm -rf $(VER) 
     70 
     71 include ../Makefile.targ
     72 
     73 FRC:
     74