当前位置: 首页 > news >正文

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.lryc.cn/news/241998.html

相关文章:

  • 测试工具JMeter的使用
  • C++编程——输入
  • opencv-直方图
  • el-table表格排序(需要后端判别),el-table导出功能(向后端发送请求)
  • 【MATLAB】全网入门快、免费获取、持续更新的科研绘图教程系列2
  • git与ssh多账户共存
  • BLE协议栈入门学习
  • 【反射】简述反射的构造方法,成员变量成员方法
  • acwing算法基础之数学知识--求卡特兰数
  • 《洛谷深入浅出基础篇》P4017最大食物链————拓扑排序
  • 设置定时自动请求测试_自动定时循环发送http_post请求---postman工作笔记001
  • Vue3封装全局插件
  • 【Python 训练营】N_6 求素数
  • 【图论】关键路径求法c++
  • 基于51单片机电子钟万年历LCD1602显示
  • 时间复杂度和运算
  • 深入Tailwind CSS中的文本样式
  • 系统优化软件Bitsum Process Lasso Pro v12.4,供大家学习研究参考
  • 敏捷DevOps专家王立杰:端到端DevOps持续交付的5P法则 | IDCF
  • 分布式锁详解
  • Python入门学习篇(二)——算术运算符
  • 微软发布最新.NET 8长期支持版本,云计算、AI应用支持再强化
  • 达索系统3DEXPERIENCE WORKS 2024 Fabrication新功能
  • Web3与Web3.0: Web3指的是去中心化和基于区块链的网络,Web3.0指的是链接或语义网络。
  • 98、Text2Room: Extracting Textured 3D Meshes from 2D Text-to-Image Models
  • MySQL 优化器 Index Condition Pushdown下推(ICP)
  • ruoyi 若依框架采用第三方登录
  • dom api
  • 音视频项目—基于FFmpeg和SDL的音视频播放器解析(二十一)
  • Qt项目打包发布超详细教程