⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 这是算术编码的源程序
💻
字号:
#
# File:		makefile
#
# Authors: 	John Carpinelli   (johnfc@ecr.mu.oz.au)
#	 	Wayne Salamonsen  (wbs@mundil.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",
#		Proc. IEEE Data Compression Conference, Snowbird, Utah, 
#		March 1995.
#
# Any comments or suggestions to: alistair@cs.mu.oz.au
#
CC = gcc

# comment this line out if your system doesn't have the "times" system call
SYSTYPE = SYSV
# standard compile flags for multiply/divide coder
CFLAGS = -O2 -D$(SYSTYPE) -ansi -pedantic
# uncomment this line for shift/add coder
# CFLAGS = -O2 -DSHIFT_ADD -D$(SYSTYPE) -ansi -pedantic

WORDSRC = word.c hashtable.c stats.c coder.c
WORDOBJ = word.o hashtable.o stats.o coder.o

CHARSRC = char.c stats.c coder.c
CHAROBJ = char.o stats.o coder.o

BITSRC = bits.c stats.c coder.c
BITOBJ = bits.o stats.o coder.o

all 	:	word char bits

word 	:	$(WORDOBJ)
		$(CC) $(CFLAGS) -o word $(WORDOBJ)

char 	:	$(CHAROBJ)
		$(CC) $(CFLAGS) -o char $(CHAROBJ)

bits 	:	$(BITOBJ)
		$(CC) $(CFLAGS) -o bits $(BITOBJ)

clean :	
	/bin/rm -f $(WORDOBJ) $(CHAROBJ) $(BITOBJ)


# dependencies for header files
word.o 		: 	hashtable.h stats.h coder.h
char.o 		:	stats.h coder.h
bits.o		:	stats.h coder.h
hashtable.o 	: 	hashtable.h 
stats.o 	:	stats.h coder.h
coder.o 	:	coder.h Makefile

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -