libbz2 for Mac OS makefile

git地址:git://sourceware.org/git/bzip2.git

a文件Makefile

# ------------------------------------------------------------------
# This file is part of bzip2/libbzip2, a program and library for
# lossless, block-sorting data compression.
#
# bzip2/libbzip2 version 1.0.8 of 13 July 2019
# Copyright (C) 1996-2019 Julian Seward <jseward@acm.org>
#
# Please read the WARNING, DISCLAIMER and PATENTS sections in the 
# README file.
#
# This program is released under the terms of the license contained
# in the file LICENSE.
# ------------------------------------------------------------------SHELL=/bin/sh# To assist in cross-compiling
CC=/usr/bin/clang
AR=ar
RANLIB=ranlib
LDFLAGS=-mmacos-version-min=10.9BIGFILES=-D_FILE_OFFSET_BITS=64
CFLAGS=-Wall -Winline -O2 -g $(BIGFILES) -I"/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/" -mmacos-version-min=10.9# Where you want it installed when you do 'make install'
PREFIX=/usr/localOBJS= blocksort.o  \huffman.o    \crctable.o   \randtable.o  \compress.o   \decompress.o \bzlib.oall: libbz2.a bzip2 bzip2recover testbzip2: libbz2.a bzip2.o$(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2bzip2recover: bzip2recover.o$(CC) $(CFLAGS) $(LDFLAGS) -o bzip2recover bzip2recover.olibbz2.a: $(OBJS)rm -f libbz2.a$(AR) cq libbz2.a $(OBJS)@if ( test -f $(RANLIB) -o -f /usr/bin/ranlib -o \-f /bin/ranlib -o -f /usr/ccs/bin/ranlib ) ; then \echo $(RANLIB) libbz2.a ; \$(RANLIB) libbz2.a ; \ficheck: test
test: bzip2@cat words1./bzip2 -1  < sample1.ref > sample1.rb2./bzip2 -2  < sample2.ref > sample2.rb2./bzip2 -3  < sample3.ref > sample3.rb2./bzip2 -d  < sample1.bz2 > sample1.tst./bzip2 -d  < sample2.bz2 > sample2.tst./bzip2 -ds < sample3.bz2 > sample3.tstcmp sample1.bz2 sample1.rb2 cmp sample2.bz2 sample2.rb2cmp sample3.bz2 sample3.rb2cmp sample1.tst sample1.refcmp sample2.tst sample2.refcmp sample3.tst sample3.ref@cat words3install: bzip2 bzip2recoverif ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fiif ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fiif ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fiif ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fiif ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; ficp -f bzip2 $(PREFIX)/bin/bzip2cp -f bzip2 $(PREFIX)/bin/bunzip2cp -f bzip2 $(PREFIX)/bin/bzcatcp -f bzip2recover $(PREFIX)/bin/bzip2recoverchmod a+x $(PREFIX)/bin/bzip2chmod a+x $(PREFIX)/bin/bunzip2chmod a+x $(PREFIX)/bin/bzcatchmod a+x $(PREFIX)/bin/bzip2recovercp -f bzip2.1 $(PREFIX)/man/man1chmod a+r $(PREFIX)/man/man1/bzip2.1cp -f bzlib.h $(PREFIX)/includechmod a+r $(PREFIX)/include/bzlib.hcp -f libbz2.a $(PREFIX)/libchmod a+r $(PREFIX)/lib/libbz2.acp -f bzgrep $(PREFIX)/bin/bzgrepln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrepln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrepchmod a+x $(PREFIX)/bin/bzgrepcp -f bzmore $(PREFIX)/bin/bzmoreln -s -f $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzlesschmod a+x $(PREFIX)/bin/bzmorecp -f bzdiff $(PREFIX)/bin/bzdiffln -s -f $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmpchmod a+x $(PREFIX)/bin/bzdiffcp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1chmod a+r $(PREFIX)/man/man1/bzgrep.1chmod a+r $(PREFIX)/man/man1/bzmore.1chmod a+r $(PREFIX)/man/man1/bzdiff.1echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1clean: rm -f *.o libbz2.a bzip2 bzip2recover \sample1.rb2 sample2.rb2 sample3.rb2 \sample1.tst sample2.tst sample3.tstblocksort.o: blocksort.c@cat words0$(CC) $(CFLAGS) -c blocksort.c
huffman.o: huffman.c$(CC) $(CFLAGS) -c huffman.c
crctable.o: crctable.c$(CC) $(CFLAGS) -c crctable.c
randtable.o: randtable.c$(CC) $(CFLAGS) -c randtable.c
compress.o: compress.c$(CC) $(CFLAGS) -c compress.c
decompress.o: decompress.c$(CC) $(CFLAGS) -c decompress.c
bzlib.o: bzlib.c$(CC) $(CFLAGS) -c bzlib.c
bzip2.o: bzip2.c$(CC) $(CFLAGS) -c bzip2.c
bzip2recover.o: bzip2recover.c$(CC) $(CFLAGS) -c bzip2recover.cdistclean: cleanrm -f manual.ps manual.html manual.pdf bzip2.txt bzip2.1.preformattedDISTNAME=bzip2-1.0.8
dist: check manualrm -f $(DISTNAME)ln -s -f . $(DISTNAME)tar cvf $(DISTNAME).tar \$(DISTNAME)/blocksort.c \$(DISTNAME)/huffman.c \$(DISTNAME)/crctable.c \$(DISTNAME)/randtable.c \$(DISTNAME)/compress.c \$(DISTNAME)/decompress.c \$(DISTNAME)/bzlib.c \$(DISTNAME)/bzip2.c \$(DISTNAME)/bzip2recover.c \$(DISTNAME)/bzlib.h \$(DISTNAME)/bzlib_private.h \$(DISTNAME)/Makefile \$(DISTNAME)/LICENSE \$(DISTNAME)/bzip2.1 \$(DISTNAME)/bzip2.1.preformatted \$(DISTNAME)/bzip2.txt \$(DISTNAME)/words0 \$(DISTNAME)/words1 \$(DISTNAME)/words2 \$(DISTNAME)/words3 \$(DISTNAME)/sample1.ref \$(DISTNAME)/sample2.ref \$(DISTNAME)/sample3.ref \$(DISTNAME)/sample1.bz2 \$(DISTNAME)/sample2.bz2 \$(DISTNAME)/sample3.bz2 \$(DISTNAME)/dlltest.c \$(DISTNAME)/manual.html \$(DISTNAME)/manual.pdf \$(DISTNAME)/manual.ps \$(DISTNAME)/README \$(DISTNAME)/README.COMPILATION.PROBLEMS \$(DISTNAME)/README.XML.STUFF \$(DISTNAME)/CHANGES \$(DISTNAME)/libbz2.def \$(DISTNAME)/libbz2.dsp \$(DISTNAME)/dlltest.dsp \$(DISTNAME)/makefile.msc \$(DISTNAME)/unzcrash.c \$(DISTNAME)/spewG.c \$(DISTNAME)/mk251.c \$(DISTNAME)/bzdiff \$(DISTNAME)/bzdiff.1 \$(DISTNAME)/bzmore \$(DISTNAME)/bzmore.1 \$(DISTNAME)/bzgrep \$(DISTNAME)/bzgrep.1 \$(DISTNAME)/Makefile-libbz2_so \$(DISTNAME)/bz-common.xsl \$(DISTNAME)/bz-fo.xsl \$(DISTNAME)/bz-html.xsl \$(DISTNAME)/bzip.css \$(DISTNAME)/entities.xml \$(DISTNAME)/manual.xml \$(DISTNAME)/format.pl \$(DISTNAME)/xmlproc.shgzip -v $(DISTNAME).tar# For rebuilding the manual from sources on my SuSE 9.1 boxMANUAL_SRCS= 	bz-common.xsl bz-fo.xsl bz-html.xsl bzip.css \entities.xml manual.xml bzip2.txt: bzip2.1MANWIDTH=67 man --ascii ./$^ > $@bzip2.1.preformatted: bzip2.1MAN_KEEP_FORMATTING=1 MANWIDTH=67 man -E UTF-8 ./$^ > $@manual: manual.html manual.ps manual.pdf bzip2.txt bzip2.1.preformattedmanual.ps: $(MANUAL_SRCS)./xmlproc.sh -ps manual.xmlmanual.pdf: $(MANUAL_SRCS)./xmlproc.sh -pdf manual.xmlmanual.html: $(MANUAL_SRCS)./xmlproc.sh -html manual.xml

dylib文件Makefile


# This Makefile builds a shared version of the library, 
# libbz2.so.1.0.8, with soname libbz2.so.1.0,
# at least on x86-Linux (RedHat 7.2), 
# with gcc-2.96 20000731 (Red Hat Linux 7.1 2.96-98).  
# Please see the README file for some important info 
# about building the library like this.# ------------------------------------------------------------------
# This file is part of bzip2/libbzip2, a program and library for
# lossless, block-sorting data compression.
#
# bzip2/libbzip2 version 1.0.8 of 13 July 2019
# Copyright (C) 1996-2019 Julian Seward <jseward@acm.org>
#
# Please read the WARNING, DISCLAIMER and PATENTS sections in the 
# README file.
#
# This program is released under the terms of the license contained
# in the file LICENSE.
# ------------------------------------------------------------------SHELL=/bin/sh
CC=/usr/bin/clang
BIGFILES=-D_FILE_OFFSET_BITS=64
CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES) -I"/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/" -mmacos-version-min=10.9OBJS= blocksort.o  \huffman.o    \crctable.o   \randtable.o  \compress.o   \decompress.o \bzlib.oall: $(OBJS)$(CC) $(CFLAGS) -shared -o libbz2.1.0.dylib $(OBJS)$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.1.0.dylibrm -f libbz2.dylibln -s libbz2.1.0.dylib libbz2.dylibclean: rm -f $(OBJS) bzip2.o libbz2.1.0.dylib libbz2.dylib bzip2-sharedblocksort.o: blocksort.c$(CC) $(CFLAGS) -c blocksort.c
huffman.o: huffman.c$(CC) $(CFLAGS) -c huffman.c
crctable.o: crctable.c$(CC) $(CFLAGS) -c crctable.c
randtable.o: randtable.c$(CC) $(CFLAGS) -c randtable.c
compress.o: compress.c$(CC) $(CFLAGS) -c compress.c
decompress.o: decompress.c$(CC) $(CFLAGS) -c decompress.c
bzlib.o: bzlib.c$(CC) $(CFLAGS) -c bzlib.c

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/163367.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/163367.shtml
英文地址,請注明出處:http://en.pswp.cn/news/163367.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

MySQL-01-MySQL基礎架構

1-MySQL邏輯結構 如果能在頭腦中構建一幅MySQL各組件之間如何協同工作的架構圖&#xff0c;有助于深入理解MySQL服務器。下圖展示了MySQL的邏輯架構圖。 MySQL邏輯架構整體分為三層&#xff0c;最上層為客戶端層&#xff0c;并非MySQL所獨有&#xff0c;諸如&#xff1a;連接處…

jar包打進本地倉庫

jar包打進本地倉庫 <dependency><groupId>com.test</groupId><artifactId>test-api</artifactId><version>1.0.0</version> </dependency>mvn install:install-file -Dfiletest.jar -DgroupIdcom.test -DartifactIdtest-api …

數據結構:鏈表

目錄 一.為什么要使用鏈表存儲數據&#xff1f; 二.鏈表的分類 單向或者雙向鏈表&#xff1a; 帶頭或者不帶頭&#xff1a; 循環或者非循環&#xff1a; 三.鏈表的實現 3.1無頭單向非循環鏈表的實現&#xff1a; 3.1.1單向無頭非循環鏈表的聲明 3.1.2動態申請一個節點 …

kmalloc

kmalloc(size(結構體)*n)就是申請n個大小為結構體的空間&#xff0c;然后返回一個指向這個空間的首地址的指針。這個指針可以看作是一個數組&#xff0c;它的每個元素都是結構體&#xff0c;所以可以使用索引來訪問這個空間的不同部分。例如&#xff0c;如果你有一個指針p&…

python數據類型之字符串、字典、元組

一、數字類型 1、number類型 Python Number 數據類型用于存儲數值。 數據類型是不允許改變的,這就意味著如果改變 Number 數據類型的值&#xff0c;將重新分配內存空間。 以下實例在變量賦值時 Number 對象將被創建&#xff1a; var1 1 var2 10也可以使用del語句刪除一些…

亞馬遜防關聯要注意什么?看這一篇,防關聯有技巧!

亞馬遜賬號關聯的問題&#xff0c;對于跨境電商來說都不陌生&#xff0c;店鋪的安全問題往往和賬號關聯有關&#xff0c;一旦亞馬遜賬號被關聯就很可能導致我們的店鋪被封&#xff0c;對于被亞馬遜封店的賣家都會有申訴機會&#xff0c;如果無法成功申訴&#xff0c;那將永久被…

C語言——利用函數遞歸,編寫函數不允許創建臨時變量,求字符串長度

#define _CRT_SECURE_NO_WARNINGS 1#include<stdio.h>int my_strlen(char* str) {if(*str ! \0)return 1my_strlen(str1);elsereturn 0; }int main() {char arr[] "hello";int len my_strlen(arr); //arr是數組&#xff0c;數組傳參&#xff0c;傳過去的是第…

NB水表能承受最大的水壓是多少?

NB水表&#xff0c;作為新一代智能水表&#xff0c;以小巧的體積、穩定的性能和強大的功能贏得了市場的認可。那么&#xff0c;它究竟能承受多大的水壓呢&#xff1f;接下來&#xff0c;小編來為大家揭秘下&#xff0c;一起來看下吧&#xff01; 一、NB水表概述 NB水表&#xf…

安卓手機好用的清單軟件有哪些?

生活中每個人都有丟三落四的習慣&#xff0c;伴隨著生活節奏的加快&#xff0c;人們常忘事的情況會更加頻繁的出現&#xff0c;這時候很多人就開始選擇手機上記錄清單類的軟件&#xff0c;安卓手機在手機市場中占有很大的分量&#xff0c;在安卓手機上好用的記錄清單的軟件有哪…

在高斯DB數據庫中,獲取上個月的日期

個人網站 返回上個月的日期。ADD_MONTHS函數用于對日期進行加減操作&#xff0c;通過將當前日期減去1個月來獲取上個月的日期。請注意&#xff0c;這里使用的是負數來表示減去一個月的時間間隔。 SELECT ADD_MONTHS(CURRENT_DATE, -1) AS last_month;

SiP封裝、合封芯片和芯片合封是一種技術嗎?都是合封芯片技術?

合封芯片、芯片合封和SiP系統級封裝經常被提及的概念。但它們是三種不同的技術&#xff0c;還是同一種技術的不同稱呼&#xff1f;本文將幫助我們更好地理解它們的差異。 一、合封芯片與SiP系統級封裝的定義 首先合封芯片和芯片合封都是一個意思 合封芯片是一種將多個芯片&a…

力扣labuladong——一刷day49

提示&#xff1a;文章寫完后&#xff0c;目錄可以自動生成&#xff0c;如何生成可參考右邊的幫助文檔 文章目錄 前言一、力扣513. 找樹左下角的值二、力扣666. 路徑總和 IV三、力扣1261. 在受污染的二叉樹中查找元素四、力扣572. 另一棵樹的子樹 前言 二叉樹的遞歸分為「遍歷」…

【Leetcode每日一題】mid——6. N 字形變換

題目描述 https://leetcode.cn/problems/zigzag-conversion/description/ 將一個給定字符串 s 根據給定的行數 numRows &#xff0c;以從上往下、從左到右進行 Z 字形排列。 比如輸入字符串為 “PAYPALISHIRING” 行數為 3 時&#xff0c;排列如下&#xff1a; 之后&#xff0…

技術細分|推薦系統——推薦系統中的數據去偏方法

本篇的主要脈絡同樣依據中科大何向南教授、合工大汪萌教授聯合在 TKDE 上的一篇綜述文章展開&#xff1a;Bias and Debias in Recommender System: A Survey and Future Directions。 下面按照前導文章中介紹的數據偏差 Selection Bias、Conformity Bias、Exposure Bias、Posit…

PDF添加文字或者圖片

引入依賴 <dependency><groupId>org.apache.pdfbox</groupId><artifactId>fontbox</artifactId><version>2.0.4</version> </dependency> <dependency><groupId>org.apache.pdfbox</groupId><artifactI…

找JPG格式圖片的地址(持續更新中)

問題描述&#xff1a;找JPG格式圖片的地址 解決辦法&#xff1a; 第一個 谷歌的images 第二個&#xff0c;搜狗圖片和百度圖片 不過下載是WEBP格式&#xff0c;可以使用一個在線WEBP格式轉JPG格式的在線網站即可。 轉換的網址為&#xff1a; https://ezgif.com/webp-to-j…

【學歷是敲門磚】如果你想有個好的起點,不妨沖一沖計算機考研,這本書將會助你一臂之力

目錄 計算機考研難點 《計算機考研精煉1000題》揭秘問答 1. 為什么是1000題&#xff1f; 2. 有什么優勢&#xff1f; 3. 編寫團隊水平如何&#xff1f; 4. 題目及解析品質如何&#xff1f;可以試讀嗎&#xff1f; 購買鏈接 高質量的學習提升圈子 京東熱賣下單鏈接&…

可視化NGINX管理平臺Nginx Proxy Manager

# for CentOSyum install docker-compose -y# for Ubuntuapt-get install docker-compose -y 如果提示&#xff1a; 沒有可用軟件包 docker-compose&#xff0c; 錯誤&#xff1a;無須任何處理 通過 pip 安裝 docker-compose # 添加企業版附加包 yum -y install epel-rel…

java--static的注意事項

1.使用類方法、實例方法時的幾點注意事項 ①類方法中可以直接訪問類的成員&#xff0c;不可以直接訪問實例成員。 ②實例方法中既可以直接訪問類成員&#xff0c;也可以直接訪問實例成員。 ③實例方法中可以出現this關鍵字&#xff0c;類方法中不可以出現this關鍵字的。

利用工業網關進行設備數采的方法-天拓四方分享

在工業物聯網&#xff08;IIoT&#xff09;中&#xff0c;設備數采是一種關鍵技術&#xff0c;它通過收集、分析和傳輸設備運行過程中的各種數據&#xff0c;為工業制造提供重要的信息和洞察。隨著工業4.0和智能制造的快速發展&#xff0c;工業數據采集和處理已經成為工業物聯網…