Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
81 lines (69 sloc) 2.39 KB
# 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
# 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]
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright (c) 2010 Joyent Inc.
BLOBJ= blocksort.o
huffman.o \
crctable.o \
randtable.o \
compress.o \
decompress.o \
bzip2.o \
all: .WAIT bzip2 bzip2recover
bzip2: bzip2.o
/opt/SUNWspro/bin/cc $(CFLAGS64) -o bzip2 bzip2.o -L. -lbz2
bzip2recover: bzip2recover.o
/opt/SUNWspro/bin/cc $(CFLAGS64) -o bzip2recover bzip2recover.o $(BLOBJ) $(OBJS)
rm -f
/opt/SUNWspro/bin/cc $(CFLAGS64) $(XREGSFLAG64) -G -h -o \
-z defs -z text -zcombreloc $(BLOBJ) $(OBJS) -M ../mapfile -L. \
-L$(DESTDIR)/usr/lib -lc
ln -s
test: bzip2
@cat words1
env LD_LIBRARY_PATH=`pwd` ./bzip2 -1 < sample1.ref > sample1.rb2
env LD_LIBRARY_PATH=`pwd` ./bzip2 -2 < sample2.ref > sample2.rb2
env LD_LIBRARY_PATH=`pwd` ./bzip2 -3 < sample3.ref > sample3.rb2
env LD_LIBRARY_PATH=`pwd` ./bzip2 -d < sample1.bz2 > sample1.tst
env LD_LIBRARY_PATH=`pwd` ./bzip2 -d < sample2.bz2 > sample2.tst
env LD_LIBRARY_PATH=`pwd` ./bzip2 -ds < sample3.bz2 > sample3.tst
cmp sample1.bz2 sample1.rb2
cmp sample2.bz2 sample2.rb2
cmp sample3.bz2 sample3.rb2
cmp sample1.tst sample1.ref
cmp sample2.tst sample2.ref
cmp sample3.tst sample3.ref
@cat words3
blocksort.o: blocksort.c
@cat words0
/opt/SUNWspro/bin/cc $(CFLAGS64) $(XREGSFLAG64) -c blocksort.c
/opt/SUNWspro/bin/cc $(CFLAGS64) $(XREGSFLAG64) -c $<
Something went wrong with that request. Please try again.