--- a/usr/src/lib/libmng/Makefile.sfw Sun May 15 10:12:12 2011 -0700
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,208 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
-#
-#ident "@(#)Makefile.sfw 1.3 11/04/15 SMI"
-
-#
-# This makefile builds both 32 and 64 bit versions of the library.
-# Builds occur in separate directories.
-#
-
-VER=libmng-1.0.10
-VER64=$(VER)-64
-
-LARGEFILES= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-PREFIX=/usr
-DESTDIR=$(SRC)/lib/libmng/proto
-
-# We need to do this because libtool adds wrong paths to RPATH.
-LDFLAGS = -Y P,$(PREFIX)/lib -i
-LDFLAGS += -L$(ROOT)/usr/lib
-LDFLAGS += -L$(PREFIX)/lib -R$(PREFIX)/lib
-
-EXTRA_LDFLAGS64 = -Y P,$(PREFIX)/lib/$(MACH64) -i
-EXTRA_LDFLAGS64 += -L$(ROOT)/usr/lib/$(MACH64)
-EXTRA_LDFLAGS64 += -L$(PREFIX)/lib/$(MACH64)
-EXTRA_LDFLAGS64 += -R$(PREFIX)/lib/$(MACH64)
-
-all: real-all
-
-all32: $(VER)/config.status
- (cd $(VER); env "CC=$(CC)" \
- "CFLAGS=$(CFLAGS) $(CPPFLAGS) $(XREGSFLAG) $(LARGEFILES)" \
- "CPP=$(CC) $(CFLAGS) $(CPPFLAGS) -E" \
- "CXX=$(CCC)" "CXXFLAGS=$(CPPFLAGS) $(CCFLAGS)" \
- "CXXCPP=$(CCC) $(CPPFLAGS) $(CCFLAGS) -E" \
- "LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -z ignore" \
- "LDFLAGS=$(LDFLAGS)" \
- "CXXLDFLAGS=$(LDFLAGS)" \
- "LD=$(CC) $(CFLAGS) $(LDFLAGS)" \
- "CCLD=$(CC) $(CFLAGS) $(LDFLAGS)" \
- "CXXLD=$(CCC) $(CXXFLAGS) $(LDFLAGS)" \
- "MAKE=/usr/ccs/bin/make" /usr/ccs/bin/make -e)
-
-# if we do not add $($(MACH64)_XARCH), CXX will assume that it's linking
-# 32-bit, and linking will fail.
-all64: $(VER64)/config.status
- (cd $(VER64); env "CC=$(CC)" \
- "MACH64=$(MACH64)" \
- "CFLAGS=$(CFLAGS64) $(CPPFLAGS) $(XREGSFLAG64) $(LARGEFILES)" \
- "CPP=$(CC) $(CFLAGS64) $(CPPFLAGS) -E" \
- "CXX=$(CCC64)" "CXXFLAGS=$(CPPFLAGS) $(CCFLAGS64)" \
- "CXXCPP=$(CCC64) $(CPPFLAGS) $(CCFLAGS64) -E" \
- "LDFLAGS=$(EXTRA_LDFLAGS64) $($(MACH64)_XARCH)" \
- "LD_OPTIONS=-M $(SRC)/cmd/mapfile_noexstk -z ignore" \
- "CXXLDFLAGS=$(EXTRA_LDFLAGS64) $($(MACH64)_XARCH)" \
- "CXXLD=$(CCC64) $(EXTRA_LDFLAGS64) $($(MACH64)_XARCH)" \
- "LD=$(CC) $(CFLAGS64) $(LDFLAGS)" \
- "CCLD=$(CC) $(CFLAGS64) $(LDFLAGS)" \
- "CXXLINKLIB=$(CCC64) $(EXTRA_LDFLAGS64) $($(MACH64)_XARCH)" \
- "MAKE=/usr/ccs/bin/make" /usr/ccs/bin/make -e)
-
-include ../Makefile.lib
-
-COMPAT_VERSION= 5
-
-# Pick up LCMS from the proto area for now
-CPPFLAGS = -I$(ROOT)/usr/include
-CPPFLAGS += -I/usr/include/lcms
-CPPFLAGS += -I$(ROOT)/usr/sfw/include
-CPPFLAGS += -I/usr/include
-
-# lint stuff
-LIBRARY=libmng.a
-LINTOUT= lint.out
-LINTFLAGS = -I./include -I. $(LARGEFILES)
-LINTFLAGS64 = $(CCBITS64) -I./include -I. $(LARGEFILES)
-
-# All this DESTDIR stuff is necessary because libtool must relink
-# the shared libraries at make install time. Otherwise, libtool will
-# put the wrong components in RPATH, and we really do not want that.
-
-install: all
- mkdir -p $(DESTDIR)
- (cd $(VER); env DESTDIR=$(DESTDIR) \
- /usr/ccs/bin/make \
- INSTALL=/usr/ucb/install \
- install)
- (cd $(VER)-64; env "DESTDIR=$(DESTDIR)" \
- /usr/ccs/bin/make \
- DESTDIR=$(DESTDIR) \
- INSTALL=/usr/ucb/install \
- install)
-
- INSTDIR=$(DESTDIR) $(SH) ./install-sfw
- INSTDIR=$(DESTDIR) MACH64=$(MACH64) $(SH) ./install-sfw-64
- rm -rf $(DESTDIR)
-
-real-all: all32 all64 lint32 lint64
-
-test: test32 test64
-
-$(VER)/config.status: $(VER)/configure
- (cd $(VER); \
- env "CC=$(CC)" "CFLAGS=$(CPPFLAGS) $(CFLAGS)" \
- "CPP=$(CC) $(CFLAGS) $(CPPFLAGS) -E" \
- "CXX=$(CCC)" "CXXFLAGS=$(CPPFLAGS) $(CCFLAGS)" \
- "CXXCPP=$(CCC) $(CPPFLAGS) $(CCFLAGS) -E" \
- "LDFLAGS=$(LDFLAGS)" \
- "CXXLD=$(CCC) $(CXXFLAGS) $(LDFLAGS)" \
- "INSTALL=/usr/ucb/install" \
- ./configure --prefix=$(PREFIX) \
- --localstatedir=/var \
- --enable-shared \
- --disable-static \
- --disable-libtool-lock \
- --enable-largefile \
- --enable-buildso \
- --enable-read \
- --enable-write \
- --enable-display \
- --enable-dynamic \
- --enable-chunks \
- --enable-storechunks \
- --with-lcms=$(PREFIX) \
- --with-zlib=$(PREFIX) \
- --with-jpeg=$(PREFIX) \
- --with-pic)
-
-$(VER64)/config.status: $(VER64)/configure
- (cd $(VER64); \
- env "CC=$(CC64)" "CFLAGS=$(CPPFLAGS) $(CFLAGS64)" \
- "CPP=$(CC64) $(CFLAGS64) $(CPPFLAGS) -E" \
- "CXX=$(CCC64)" "CXXFLAGS=$(CPPFLAGS) $(CCFLAGS64)" \
- "CXXCPP=$(CCC64) $(CPPFLAGS) $(CCFLAGS64) -E" \
- "LDFLAGS=$(EXTRA_LDFLAGS64) $($(MACH64)_XARCH)" \
- "CXXLDFLAGS=$(EXTRA_LDFLAGS64) $($(MACH64)_XARCH) -norunpath" \
- "CXXLD=$(CCC64) $(EXTRA_LDFLAGS64) $($(MACH64)_XARCH)" \
- "CXXLINKLIB=$(CCC64) $(EXTRA_LDFLAGS64) $($(MACH64)_XARCH)" \
- "MACH64=$(MACH64)" \
- "INSTALL=/usr/ucb/install" \
- ./configure --prefix=$(PREFIX) \
- --bindir=$(PREFIX)/bin/$(MACH64) \
- --libdir=$(PREFIX)/lib/$(MACH64) \
- --libexecdir=$(PREFIX)/libexec/$(MACH64) \
- --localstatedir=/var \
- --enable-shared \
- --disable-static \
- --disable-libtool-lock \
- --enable-largefile \
- --enable-buildso \
- --enable-read \
- --enable-write \
- --enable-display \
- --enable-dynamic \
- --enable-chunks \
- --enable-storechunks \
- --with-lcms=$(PREFIX) \
- --with-zlib=$(PREFIX) \
- --with-jpeg=$(PREFIX) \
- --with-pic)
-
-$(VER)/configure: $(VER).tar.gz
- mkdir -p tmp; gzip -dc $(VER).tar.gz | (cd tmp; tar xopf -)
- mv tmp/$(VER) $(VER); rmdir tmp
- touch $(VER)/configure
- ( cd $(VER) ; cp -fp makefiles/configure.in . ; cd ..)
-
-$(VER64)/configure: $(VER).tar.gz
- mkdir -p tmp; gzip -dc $(VER).tar.gz | (cd tmp; tar xopf -)
- mv tmp/$(VER) $(VER64); rmdir tmp
- touch $(VER64)/configure
- ( cd $(VER64) ; cp -fp makefiles/configure.in . ; cd ..)
-
-clean:
- -rm -rf $(VER)
- -rm -rf $(VER64)
-
-lint32: $(VER)/config.status
- (cd $(VER); \
- $(LINT.c) -o $(LIBNAME) ../llib-lmng > $(LINTOUT) 2>&1)
-
-lint64: $(VER64)/config.status
- (cd $(VER64); \
- $(LINT64.c) -o $(LIBNAME) ../llib-lmng > $(LINTOUT) 2>&1)
-
-install_h:
-
-include ../Makefile.targ