Windows 10 下编译 libmp3lame3.100

目录结构如下

Windows 10 下编译 libmp3lame3.100

Makefile

LAME_ROOT=.
CC=gcc
CFLAG=-Iinclude -DSTDC_HEADERS -Duint8_t="unsigned char" -Duint16_t="unsigned short" -Duint32_t="unsigned int" -Duint64_t="unsigned long long" -Dint16_t="signed short" -c
all:
	echo starting
	$(CC) $(CFLAG) ${LAME_ROOT}/xmm_quantize_sub.c \
	${LAME_ROOT}/bitstream.c \
	${LAME_ROOT}/encoder.c \
	${LAME_ROOT}/fft.c \
	${LAME_ROOT}/gain_analysis.c \
	${LAME_ROOT}/id3tag.c \
	${LAME_ROOT}/lame.c \
	${LAME_ROOT}/mpglib_interface.c \
	${LAME_ROOT}/newmdct.c \
	${LAME_ROOT}/presets.c \
	${LAME_ROOT}/psymodel.c \
	${LAME_ROOT}/quantize.c \
	${LAME_ROOT}/quantize_pvt.c \
	${LAME_ROOT}/reservoir.c \
	${LAME_ROOT}/set_get.c \
	${LAME_ROOT}/tables.c \
	${LAME_ROOT}/takehiro.c \
	${LAME_ROOT}/util.c \
	${LAME_ROOT}/vbrquantize.c \
	${LAME_ROOT}/VbrTag.c \
	${LAME_ROOT}/version.c

link:
	$(CC) *.o --shared -o build.dll

clean:
	echo cleaning
	rm *.o

总共有 21.c 文件,24.h 文件,编译后会生成 21.o 文件,1.dll 文件

上一篇:PTA L2-021 点赞狂魔


下一篇:重磅:Flume1-7结合kafka讲解