Home | History | Annotate | Download | only in clisp
      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 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     22 # Use is subject to license terms.
     23 #
     24 # ident	"@(#)Makefile.sfw	1.2	09/04/21 SMI"
     25 #
     26 
     27 
     28 VER			= $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
     29 TARBALL			= $(VER).tar.bz2
     30 PATCHES:sh		= echo Patches/*.patch
     31 
     32 include ../Makefile.cmd
     33 
     34 CLISP_TOP:sh		= pwd
     35 OBJS			= $(CLISP_TOP)/objs
     36 READLINE_DIR		= $(ROOT)/usr
     37 LIBSIGSEGV_DIR		= $(ROOT)/usr
     38 
     39 CLISP_CFLAGS		=
     40 
     41 CONFIGURE_OPTIONS	= --prefix=$(CFGPREFIX)
     42 CONFIGURE_OPTIONS	+= --libdir=$(CFGLIB)
     43 CONFIGURE_OPTIONS	+= --localedir=$(CFGLOCALE)
     44 CONFIGURE_OPTIONS	+= --with-libsigsegv-prefix=$(LIBSIGSEGV_DIR)
     45 CONFIGURE_OPTIONS	+= --with-libreadline-prefix=$(READLINE_DIR)
     46 CONFIGURE_OPTIONS	+= build
     47 
     48 TARGET_ENV      	= CC="$(GCC)"
     49 TARGET_ENV      	+= CFLAGS="$(CLISP_CFLAGS)"
     50 TARGET_ENV      	+= PATH="$(SFW_PATH)"
     51 
     52 
     53 .NO_PARALLEL:
     54 
     55 all:  $(VER)/build/Makefile
     56 	(cd $(VER)/build; env -i $(TARGET_ENV) $(GMAKE) )
     57 
     58 install: all
     59 	(cd $(VER)/build; \
     60 		$(RM) -f $(ROOT)/$(CFGBIN)/clisp; \
     61 		env $(TARGET_ENV) $(GMAKE) INSTALL="$(INSTALL_PROTO)" \
     62 		DESTDIR=$(ROOT) install)
     63 	(cd $(ROOT)/$(CFGDOC)/clisp; \
     64 		$(RM) -f clisp.ps clisp.pdf clisp.dvi clisp.html doc/clisp.1)
     65 	$(SRC)/tools/protofix --pkg SUNWclisp --perm
     66 
     67 $(VER)/build/Makefile: $(VER)/configure
     68 	(cd $(VER); env -i $(TARGET_ENV) ./configure $(CONFIGURE_OPTIONS))
     69 
     70 $(VER)/configure: $(VER)/.patched
     71 	touch $@
     72 
     73 clean:
     74 	$(RM) -rf $(VER) 
     75 
     76 include ../Makefile.targ
     77 
     78 FRC:
     79