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.4 09/05/19 SMI" 25 # 26 27 28 VER =$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh) 29 TARBALL =$(VER).tar.gz 30 31 include ../Makefile.cmd 32 CONFIGURE_OPTIONS += --with-libdir=$(CFGLIB)/ocaml 33 34 # stuff to whack when we do 'make clean' 35 36 CLEANDIRS=$(VER) 37 38 all:$(VER)/configure 39 $(SRC)/tools/protofix --pkg SUNWlablgtk --write 40 (cd $(VER); env - \ 41 PATH=$(SFW_PATH) \ 42 MAKE=$(GMAKE) \ 43 $(GMAKE) world) 44 45 install: all 46 (cd $(VER); env - \ 47 DESTDIR=$(ROOT) \ 48 MAKE=$(GMAKE) \ 49 $(GMAKE) install) 50 $(SHELL) ./install-sfw 51 $(SRC)/tools/protofix --pkg SUNWlablgtk --perm 52 53 $(VER)/configure: 54 gzip -dc $(TARBALL) | tar xopf - 55 $(GPATCH) -p0 < ml_panel.c.patch 56 (cd $(VER);\ 57 env - \ 58 PATH=$(SFW_PATH) \ 59 MAKE=$(GMAKE) \ 60 $(SHELL) ./configure $(CONFIGURE_OPTIONS);\ 61 sed 's/\-mt//g' config.make > config.make.mod; \ 62 mv -f config.make.mod config.make;) 63 64 clean: 65 -rm -rf $(CLEANDIRS) 66 67 include ../Makefile.targ 68