📄 makefile.mingw32
字号:
# This makefile compiles lame_enc.dll with mingw32 (and possibly cygwin)# Of course, you must first build ../libmp3lame/libmp3lame.a.# liblame_enc.a can be used to link the lame_enc.dll to your programs.# Tested with EAC 0.9pb9 (my own favorite, http://www.exactaudiocopy.de/)# example.exe compiles and works, too.# Vladislav Naumov, <vnaum@inbox.ru>## PS: to 'make clean' you need rm. MS's del is unusable.# PPS: quick build:# make -fMakefile.mingw32DLL_NAME = lame_encLAME_SRC_ROOT = ..OFILES = BladeMP3EncDLL.o $(DLL_NAME)_exp.oCFLAGS = -I$(LAME_SRC_ROOT)/include -I$(LAME_SRC_ROOT)/libmp3lameCC = gccLD = gccLFLAGS = -L$(LAME_SRC_ROOT)/libmp3lame -o $(DLL_NAME).dll -mdll -sLIBS = -lmp3lameall: $(DLL_NAME).dll example.exeBladeMP3EncDLL.o: BladeMP3EncDLL.c BladeMP3EncDLL.h ../include/lame.h \ ../libmp3lame/lame_global_flags.h ../libmp3lame/version.h$(DLL_NAME).dll : $(OFILES) $(LD) $(LFLAGS) $(OFILES) $(LIBS) $(DLL_NAME)_exp.o : BladeMP3EncDLL.o dlltool --input-def BladeMP3EncDLL.def --output-lib lib$(DLL_NAME).a --output-exp $(DLL_NAME)_exp.o --dllname $(DLL_NAME) BladeMP3EncDLL.o%.o : %.c $(CC) $(CFLAGS) -c $< -o $@example.exe : Example.cpp BladeMP3EncDLL.h gcc Example.cpp -o example.execlean : rm -f $(DLL_NAME).dll $(OFILES) example.exe
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -