github.com/igggame/nebulas-go@v2.1.0+incompatible/nbre/3rd_party/Makefile-libbz2_dylib (about) 1 2 # This Makefile builds a shared version of the library, 3 # libbz2.1.0.6.dylib, with install_name libbz2.1.dylib on Darwin 4 # 5 # Makefile created and used by Gentoo 6 7 # ------------------------------------------------------------------ 8 # This file is part of bzip2/libbzip2, a program and library for 9 # lossless, block-sorting data compression. 10 # 11 # bzip2/libbzip2 version 1.0.6 of 6 September 2010 12 # Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org> 13 # 14 # Please read the WARNING, DISCLAIMER and PATENTS sections in the 15 # README file. 16 # 17 # This program is released under the terms of the license contained 18 # in the file LICENSE. 19 # ------------------------------------------------------------------ 20 21 22 SHELL=/bin/sh 23 CC=gcc 24 BIGFILES=-D_FILE_OFFSET_BITS=64 25 CFLAGS+=-fpic -fPIC -Wall -Winline $(BIGFILES) $(CPPFLAGS) 26 PREFIX=/usr 27 LIBDIR=lib 28 SOLDFLAGS=-dynamiclib -install_name $(PREFIX)/$(LIBDIR)/libbz2.1.dylib -compatibility_version 1.0.0 -current_version 1.0.6 29 30 OBJS= blocksort.o \ 31 huffman.o \ 32 crctable.o \ 33 randtable.o \ 34 compress.o \ 35 decompress.o \ 36 bzlib.o 37 38 all: $(OBJS) 39 $(CC) $(LDFLAGS) $(SOLDFLAGS) -o libbz2.1.0.6.dylib $(OBJS) 40 41 clean: 42 rm -f $(OBJS) bzip2.o libbz2.1.0.6.dylib libbz2.1.0.dylib bzip2-shared 43 44 install: 45 if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi 46 if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi 47 if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi 48 if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi 49 if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi 50 cp -f bzlib.h $(PREFIX)/include 51 chmod a+r $(PREFIX)/include/bzlib.h 52 cp -f libbz2.1.0.6.dylib $(PREFIX)/lib 53 chmod a+r $(PREFIX)/lib/libbz2.1.0.6.dylib 54 ln -fs libbz2.1.0.6.dylib $(PREFIX)/lib/libbz2.dylib 55 ln -fs libbz2.1.0.6.dylib $(PREFIX)/lib/libbz2.1.dylib