目录结构如下
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
文件