3 Star 0 Fork 0

thor/zipzap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 925 Bytes
一键复制 编辑 原始数据 按行查看 历史
thor 提交于 2014-06-01 19:59 +08:00 . .
CC=gcc
CFLAGS=-Wall -Wno-format -Wno-unused -Werror -pg
EXEC=zz
OBJS=encoder.o decoder.o test.o dict.o bit_reader.o
exec: $(OBJS) main.c defs.h
$(CC) $(CFLAGS) -o $(EXEC) main.c $(OBJS)
decoder: decoder.o bit_reader.o
$(CC) $(CFLAGS) -o decoder decoder.o bit_reader.o
decoder.o: decoder.c decoder.h
$(CC) $(CFLAGS) -c decoder.c decoder.h
bit_reader.o: bit_reader.c bit_reader.h
$(CC) $(CFLAGS) -c bit_reader.c bit_reader.h
encoder.o: dict.o encoder.c encoder.h defs.h
$(CC) $(CFLAGS) -c encoder.c
dict.o: dict.c dict.h defs.h
$(CC) $(CFLAGS) -c dict.c
test.o: test.h test.c defs.h
$(CC) $(CFLAGS) -c test.c
evaluate: exec
./$(EXEC) -t
@cat log.txt
encode: exec
@time ./$(EXEC) -e example.html encoded.txt
@echo "Before compressed: "
@du -hs example.html
@echo "After compressed:"
@du -hs encoded.txt
decode: $(EXEC)
./$(EXEC) -e -d encoded.txt decoded.txt
clean:
rm -f zz *.o *.swp
all: exec
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/thor/zipzap.git
git@gitee.com:thor/zipzap.git
thor
zipzap
zipzap
master

搜索帮助