📄 makefile
字号:
## File: Makefile## Authors: John Carpinelli (johnfc@ecr.mu.oz.au)# Wayne Salamonsen (wbs@mundil.cs.mu.oz.au)# Lang Stuiver (langs@cs.mu.oz.au)# Andrew Turpin (aht@cs.mu.oz.au)## Purpose: This is the makefile for the revised arithmetic coding # implementation## Based on: A. Moffat, R. Neal, I.H. Witten, "Arithmetic Coding Revisted",# ACM Transactions on Information Systems, 16(3):256-294, 1998## A. Moffat, "An improved data structure for cummulative # probability tables", Software-Practice and Experience,# 29(7):647-659, 1999.## Any comments or suggestions to: alistair@cs.mu.oz.au#CC = gcc# Change the fixed B_BITS and F_BITS parameters here if required.FIXED_SHIFT = -DB_BITS=32 -DF_BITS=27VARY_SHIFT = -DVARY_NBITSFIXED_MULT = -DB_BITS=32 -DF_BITS=27 -DMULT_DIV VARY_MULT = -DMULT_DIV -DVARY_NBITS# Uncomment one of the setup flag assignments below to choose the type# of coder.# SETUP_FLAGS = $(FIXED_SHIFT)# SETUP_FLAGS = $(VARY_SHIFT)SETUP_FLAGS = $(FIXED_MULT)# SETUP_FLAGS = $(VARY_MULT)# comment this line out if your system doesn't have the "times" system callSYSTYPE = -DSYSV# Setup compile flagsCFLAGS = -Wall -O3 -ansi -pedantic $(SYSTYPE) $(SETUP_FLAGS)LINKFLAGS = CODER = arithBITIO = bitioARITHOBJ = main.o bits.o char.o word.o hashtable.o uint.o stats.o \ $(CODER).o $(BITIO).oall : arith_coder word char bits uintarith_coder : $(ARITHOBJ) $(CC) $(LINKFLAGS) -o arith_coder $(ARITHOBJ)word : arith_coder ; test '[ ! -L word ]' ln -s arith_coder wordchar : arith_coder ; test '[ ! -L char ]' ln -s arith_coder charbits : arith_coder ; test '[ ! -L bits ]' ln -s arith_coder bitsuint : arith_coder ; test '[ ! -L uint ]' ln -s arith_coder uintclean : /bin/rm -f $(ARITHOBJ)clobber : /bin/rm -f $(ARITHOBJ) /bin/rm -f word char bits uint arith_coderpackage: tar cf - Makefile README WHATSNEW *.c *.h *.i *.1 | gzip -9 > ../arith_coder-3.tar.gz# dependencies for header filesmain.o : $(BITIO).h $(CODER).h stats.h main.h Makefilechar.o : $(BITIO).h $(CODER).h stats.h main.h Makefilebits.o : $(BITIO).h $(CODER).h stats.h main.h Makefileuint.o : $(BITIO).h $(CODER).h stats.h main.h Makefileword.o : $(BITIO).h $(CODER).h stats.h main.h Makefile hashtable.hhashtable.o : stats.h $(CODER).h main.h hashtable.h Makefilestats.o : stats.h $(CODER).h Makefile$(BITIO).o : $(BITIO).h Makefile$(CODER).o : $(CODER).h $(BITIO).h Makefile
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -