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

📄 makefile

📁 JPEG2000 EBCOT算法源码
💻
字号:
CC = cc

INCLUDES = -I../common -I../ebcot_common -I../line_xform -I.
C_OPT = -O
CFLAGS = -Aa $(INCLUDES) $(C_OPT)

BIN_DIR = ../bin

ANALYSIS_OBJS = hplx_info.o hplx_vert.o hplx_hor.o
QUANTIZER_OBJS = hpdz_quant.o
ENCODER_OBJS = ebcot_arith_encoder.o ebcot_common.o ebcot_encoder.o ebcot_send_bits.o
BITSTREAM_OBJS = std_bitsink.o

ebcot_lite :: compress_config.h ../compress/compress.c ../common/line_block_ifc.h ../common/local_heap.h $(ANALYSIS_OBJS) $(QUANTIZER_OBJS) $(ENCODER_OBJS) ebcot_lite_encode_passes.o $(BITSTREAM_OBJS)
	$(CC) $(CFLAGS) ../compress/compress.c \
	      $(ANALYSIS_OBJS) \
	      $(QUANTIZER_OBJS) \
	      $(ENCODER_OBJS) ebcot_lite_encode_passes.o \
	      $(BITSTREAM_OBJS) \
	      -o $(BIN_DIR)/ebcot_lite_compress -lm

# Analysis objects.

hplx_info.o :: ../common/hplx_info.c ../common/line_block_ifc.h ../common/local_heap.h
	$(CC) $(CFLAGS) -c ../common/hplx_info.c -o hplx_info.o
hplx_vert.o :: ../line_xform/hplx_vert.c ../line_xform/hplx_def.h ../line_xform/hplx_hor.h ../common/line_block_ifc.h ../common/local_heap.h
	$(CC) $(CFLAGS) -c ../line_xform/hplx_vert.c -o hplx_vert.o
hplx_hor.o :: ../line_xform/hplx_hor.c ../line_xform/hplx_def.h ../line_xform/hplx_hor.h ../common/line_block_ifc.h ../common/local_heap.h
	$(CC) $(CFLAGS) -c ../line_xform/hplx_hor.c -o hplx_hor.o

# Quantizer objects.

hpdz_quant.o :: ../compress/hpdz_quant.c ../common/line_block_ifc.h ../common/local_heap.h
	$(CC) $(CFLAGS) -c ../compress/hpdz_quant.c -o hpdz_quant.o

# Encoder objects.

ebcot_arith_encoder.o :: ebcot_arith_encoder.c ebcot_arith_encoder.h ebcot_encoder.h ../ebcot_common/ebcot_common.h ../ebcot_common/ebcot_constants.h ../common/line_block_ifc.h ../common/local_heap.h
	$(CC) $(CFLAGS) -c ebcot_arith_encoder.c -o ebcot_arith_encoder.o

ebcot_common.o :: ../ebcot_common/ebcot_common.c ../ebcot_common/ebcot_common.h ../ebcot_common/ebcot_constants.h ../common/line_block_ifc.h ../common/local_heap.h
	$(CC) $(CFLAGS) -c ../ebcot_common/ebcot_common.c -o ebcot_common.o

ebcot_lite_encode_passes.o :: ebcot_lite_encode_passes.c ebcot_arith_encoder.h ebcot_encoder.h ../ebcot_common/ebcot_common.h ../ebcot_common/ebcot_constants.h ../common/line_block_ifc.h ../common/local_heap.h
	$(CC) $(CFLAGS) -c ebcot_lite_encode_passes.c -o ebcot_lite_encode_passes.o

ebcot_encoder.o :: ebcot_encoder.c ebcot_arith_encoder.h ../ebcot_common/ebcot_common.h ../ebcot_common/ebcot_constants.h ../common/line_block_ifc.h ../common/local_heap.h
	$(CC) $(CFLAGS) -c ebcot_encoder.c -o ebcot_encoder.o

ebcot_send_bits.o :: ebcot_send_bits.c ebcot_send_bits.h ebcot_encoder.h ../ebcot_common/ebcot_common.h ../ebcot_common/ebcot_constants.h ../common/line_block_ifc.h ../common/local_heap.h
	$(CC) $(CFLAGS) -c ebcot_send_bits.c -o ebcot_send_bits.o

# Bitstream objects.

std_bitsink.o :: ../compress/std_bitsink.c ../common/line_block_ifc.h ../common/local_heap.h
	$(CC) $(CFLAGS) -c ../compress/std_bitsink.c -o std_bitsink.o

clean ::
	rm $(ANALYSIS_OBJS) \
	   $(QUANTIZER_OBJS) \
	   $(ENCODER_OBJS) ebcot_lite_encode_passes.o \
	   $(BITSTREAM_OBJS)

⌨️ 快捷键说明

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