📄 makefile
字号:
############################################################################# Makefile for huffman encode/decode programs## $Id: Makefile,v 1.7 2005/05/23 03:18:04 michael Exp $# $Log: Makefile,v $# Revision 1.7 2005/05/23 03:18:04 michael# Moved internal routines and definitions common to both canonical and# traditional Huffman coding so that they are only declared once.## Revision 1.6 2004/06/15 13:34:52 michael# Build sample with canonical and traditional huffman codes.## Revision 1.5 2004/02/26 04:47:55 michael# Compile to executable sample program, which links to either huffman or# chuffman.## Revision 1.3 2004/01/13 15:35:47 michael# Add CVS Log##############################################################################CC = gccLD = gccCFLAGS = -O3 -Wall -ansi -pedantic -cLDFLAGS = -O3 -o# librariesLIBS = -L. -lhuffman -lgetopt# Treat NT and non-NT windows the sameifeq ($(OS),Windows_NT) OS = Windowsendififeq ($(OS),Windows) EXE = .exe DEL = delelse #assume Linux/Unix EXE = DEL = rmendifall: sample$(EXE)sample$(EXE): sample.o libhuffman.a libgetopt.a $(LD) $^ $(LIBS) $(LDFLAGS) $@sample.o: sample.c huffman.h getopt.h $(CC) $(CFLAGS) $<libhuffman.a: huffman.o chuffman.o huflocal.o bitarray.o bitfile.o ar crv libhuffman.a huffman.o chuffman.o huflocal.o\ bitarray.o bitfile.o ranlib libhuffman.ahuffman.o: huffman.c huflocal.h bitarray.h bitfile.h $(CC) $(CFLAGS) $<chuffman.o: chuffman.c huflocal.h bitarray.h bitfile.h $(CC) $(CFLAGS) $<huflocal.o: huflocal.c huflocal.h $(CC) $(CFLAGS) $<bitarray.o: bitarray.c bitarray.h $(CC) $(CFLAGS) $<bitfile.o: bitfile.c bitfile.h $(CC) $(CFLAGS) $<libgetopt.a: getopt.o ar crv libgetopt.a getopt.o ranlib libgetopt.agetopt.o: getopt.c getopt.h $(CC) $(CFLAGS) $<clean: $(DEL) *.o $(DEL) *.a $(DEL) sample$(EXE)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -