📄 makefile.msvc
字号:
# Set the value of $(MSVCDir) for your installation.
# Please note that none of the directory names are allowed to have spaces
# in them. You must use the short name.
#
# "C:\Program Files\Microsoft Visual Studio\VC98" will not work.
# "C:\Progra~1\Micros~1\VC98" will work.
MSVCDir="C:\Progra~1\Micros~1\VC98"
CPP=cl.exe
LINK32=link.exe
DLL_LINK_FLAGS=/nologo /dll /incremental:no /libpath:"$(MSVCDir)\Lib" /pdb:"libsndfile.pdb" /implib:".\libsndfile.lib" /machine:I386 /out:"libsndfile.dll"
PROG_LINK_FLAGS=/nologo /incremental:no /libpath:"$(MSVCDir)\Lib" /pdb:"libsndfile.pdb" /machine:I386 /exetype:dynamic
CFLAGS=/nologo /MD /W1 /GX /O2 /I "$(MSVCDir)\Include" /I "src" /D "WIN32" /D "_USRDLL" /D "inline=__inline" /YX /FD
#====================================================================
# Targets
ALL : libsndfile.dll \
"sndfile-info.exe" \
"sndfile-convert.exe" \
"sndfile-play.exe" \
"generate.exe"
CLEAN :
-@erase "src\*.obj"
-@erase "src\G72x\*.obj"
-@erase "src\GSM610\*.obj"
-@erase "tests\*.obj"
-@erase "tests\*.exe"
#====================================================================
LINK32_OBJS= \
".\src\GSM610\add.obj" \
".\src\GSM610\code.obj" \
".\src\GSM610\decode.obj" \
".\src\GSM610\gsm_create.obj" \
".\src\GSM610\gsm_decode.obj" \
".\src\GSM610\gsm_destroy.obj" \
".\src\GSM610\gsm_encode.obj" \
".\src\GSM610\gsm_option.obj" \
".\src\GSM610\long_term.obj" \
".\src\GSM610\lpc.obj" \
".\src\GSM610\preprocess.obj" \
".\src\GSM610\rpe.obj" \
".\src\GSM610\short_term.obj" \
".\src\GSM610\table.obj" \
".\src\G72x\g721.obj" \
".\src\G72x\g723_16.obj" \
".\src\G72x\g723_24.obj" \
".\src\G72x\g723_40.obj" \
".\src\G72x\g72x.obj" \
".\src\aiff.obj" \
".\src\alaw.obj" \
".\src\au.obj" \
".\src\au_g72x.obj" \
".\src\avr.obj" \
".\src\common.obj" \
".\src\double64.obj" \
".\src\dwvw.obj" \
".\src\file_io.obj" \
".\src\dither.obj" \
".\src\float32.obj" \
".\src\command.obj" \
".\src\strings.obj" \
".\src\ima_adpcm.obj" \
".\src\ms_adpcm.obj" \
".\src\nist.obj" \
".\src\ircam.obj" \
".\src\paf.obj" \
".\src\pcm.obj" \
".\src\raw.obj" \
".\src\rx2.obj" \
".\src\sd2.obj" \
".\src\sndfile.obj" \
".\src\svx.obj" \
".\src\txw.obj" \
".\src\sds.obj" \
".\src\ulaw.obj" \
".\src\voc.obj" \
".\src\w64.obj" \
".\src\wav.obj" \
".\src\gsm610.obj" \
".\src\wav_w64.obj" \
".\src\dwd.obj" \
".\src\wve.obj" \
".\src\mat4.obj" \
".\src\mat5.obj" \
".\src\vox_adpcm.obj" \
".\src\ogg.obj" \
".\src\pvf.obj" \
".\src\xi.obj" \
".\src\htk.obj"
libsndfile.dll : $(LINK32_OBJS) ".\src\libsndfile.def"
$(LINK32) $(DLL_LINK_FLAGS) /def:".\src\libsndfile.def" $(LINK32_OBJS)
"sndfile-info.exe" : ".\examples\sndfile-info.c"
$(CPP) $(CFLAGS) /Fo".\examples\sndfile-info.obj" /c ".\examples\sndfile-info.c"
$(LINK32) $(PROG_LINK_FLAGS) /out:"sndfile-info.exe" ".\examples\sndfile-info.obj" libsndfile.lib
"sndfile-convert.exe" : ".\examples\sndfile-convert.c"
$(CPP) $(CFLAGS) /Fo".\examples\sndfile-convert.obj" /c ".\examples\sndfile-convert.c"
$(LINK32) $(PROG_LINK_FLAGS) /out:"sndfile-convert.exe" ".\examples\sndfile-convert.obj" libsndfile.lib
"sndfile-play.exe" : ".\examples\sndfile-play.c"
$(CPP) $(CFLAGS) /Fo".\examples\sndfile-play.obj" /c ".\examples\sndfile-play.c"
$(LINK32) $(PROG_LINK_FLAGS) /out:"sndfile-play.exe" ".\examples\sndfile-play.obj" libsndfile.lib winmm.lib
"generate.exe" : ".\examples\generate.c"
$(CPP) $(CFLAGS) /Fo".\examples\generate.obj" /c ".\examples\generate.c"
$(LINK32) $(PROG_LINK_FLAGS) /out:"generate.exe" ".\examples\generate.obj" libsndfile.lib
TEST_PROGS= \
".\src\test_file_io.exe" \
".\tests\sfversion.exe" \
".\tests\error_test.exe" \
".\tests\pcm_test.exe" \
".\tests\ulaw_test.exe" \
".\tests\alaw_test.exe" \
".\tests\dwvw_test.exe" \
".\tests\command_test.exe" \
".\tests\floating_point_test.exe" \
".\tests\headerless_test.exe" \
".\tests\write_read_test.exe" \
".\tests\lossy_comp_test.exe" \
".\tests\peak_chunk_test.exe" \
".\tests\misc_test.exe" \
".\tests\string_test.exe" \
".\tests\win32_test.exe" \
".\tests\stdio_test.exe" \
".\tests\pipe_test.exe" \
".\tests\benchmark.exe"
CHECK: $(TEST_PROGS)
".\src\test_file_io.exe"
".\tests\error_test.exe"
".\tests\pcm_test.exe"
".\tests\ulaw_test.exe"
".\tests\alaw_test.exe"
".\tests\dwvw_test.exe"
".\tests\command_test.exe" ver
".\tests\command_test.exe" norm
".\tests\command_test.exe" format
".\tests\floating_point_test.exe"
".\tests\headerless_test.exe"
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo passed common tests
-@echo ----------------------------------------------------------------------
".\tests\write_read_test" wav
".\tests\lossy_comp_test" wav_ima
".\tests\lossy_comp_test" wav_msadpcm
".\tests\lossy_comp_test" wav_ulaw
".\tests\lossy_comp_test" wav_alaw
".\tests\lossy_comp_test" wav_gsm610
".\tests\peak_chunk_test" wav
".\tests\misc_test" wav
".\tests\string_test" wav
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo "passed tests on WAV files.
-@echo ----------------------------------------------------------------------
".\tests\write_read_test" aiff
".\tests\lossy_comp_test" aiff_ulaw
".\tests\lossy_comp_test" aiff_alaw
".\tests\peak_chunk_test" aiff
".\tests\misc_test" aiff
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo " passed tests on AIFF files."
-@echo ----------------------------------------------------------------------
".\tests\write_read_test" au
".\tests\lossy_comp_test" au_ulaw
".\tests\lossy_comp_test" au_alaw
".\tests\lossy_comp_test" au_g721
".\tests\lossy_comp_test" au_g723
".\tests\misc_test" au
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo " passed tests on AU files."
-@echo ----------------------------------------------------------------------
".\tests\write_read_test" raw
".\tests\lossy_comp_test" raw_ulaw
".\tests\lossy_comp_test" raw_alaw
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo " passed tests on RAW (header-less) files."
-@echo ----------------------------------------------------------------------
".\tests\write_read_test" paf
".\tests\misc_test" paf
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo " passed tests on PAF files."
-@echo ----------------------------------------------------------------------
".\tests\write_read_test" svx
".\tests\misc_test" svx
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo " passed tests on SVX files."
-@echo ----------------------------------------------------------------------
".\tests\write_read_test" nist
".\tests\misc_test" nist
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo " passed tests on NIST files."
-@echo ----------------------------------------------------------------------
".\tests\write_read_test" ircam
".\tests\lossy_comp_test" ircam_ulaw
".\tests\lossy_comp_test" ircam_alaw
".\tests\misc_test" ircam
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo " passed tests on IRCAM files."
-@echo ----------------------------------------------------------------------
".\tests\write_read_test" voc
".\tests\lossy_comp_test" voc_ulaw
".\tests\lossy_comp_test" voc_alaw
".\tests\misc_test" voc
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo " passed tests on VOC files."
-@echo ----------------------------------------------------------------------
".\tests\write_read_test" w64
".\tests\lossy_comp_test" w64_ima
".\tests\lossy_comp_test" w64_msadpcm
".\tests\lossy_comp_test" w64_ulaw
".\tests\lossy_comp_test" w64_alaw
".\tests\lossy_comp_test" w64_gsm610
".\tests\misc_test" w64
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo " passed tests on W64 files."
-@echo ----------------------------------------------------------------------
".\tests\write_read_test" mat4
".\tests\misc_test" mat4
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo " passed tests on MAT4 files."
-@echo ----------------------------------------------------------------------
".\tests\write_read_test" mat5
".\tests\misc_test" mat5
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo " passed tests on MAT5 files."
-@echo ----------------------------------------------------------------------
".\tests\write_read_test" htk
".\tests\misc_test" htk
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo " passed tests on HTK files."
-@echo ----------------------------------------------------------------------
".\tests\write_read_test" avr
".\tests\misc_test" avr
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo " passed tests on AVR files."
-@echo ----------------------------------------------------------------------
-@".\tests\stdio_test.exe"
-@".\tests\pipe_test.exe"
-@echo ----------------------------------------------------------------------
-@".\tests\sfversion.exe"
-@echo " passed all tests."
-@echo ----------------------------------------------------------------------
#====================================================================
# C files in src\GSM610.
".\src\GSM610\add.obj" : ".\src\Gsm610\add.c"
$(CPP) $(CFLAGS) /Fo".\src\Gsm610\add.obj" /c ".\src\Gsm610\add.c"
".\src\GSM610\code.obj" : ".\src\Gsm610\code.c"
$(CPP) $(CFLAGS) /Fo".\src\Gsm610\code.obj" /c ".\src\Gsm610\code.c"
".\src\GSM610\decode.obj" : ".\src\Gsm610\decode.c"
$(CPP) $(CFLAGS) /Fo".\src\Gsm610\decode.obj" /c ".\src\Gsm610\decode.c"
".\src\GSM610\gsm_create.obj" : ".\src\Gsm610\gsm_create.c"
$(CPP) $(CFLAGS) /Fo".\src\Gsm610\gsm_create.obj" /c ".\src\Gsm610\gsm_create.c"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -