From 44cd3e6c188450ac2f7cc1174badadb2ef75ce8e Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Mon, 25 Dec 2000 19:32:34 +0000 Subject: [PATCH] tweak compiler options --- src/flac/Makefile.vc | 50 +++++++++++++-------------- src/libFLAC/Makefile.vc | 62 +++++++++++++++++----------------- src/plugin_winamp2/Makefile.vc | 46 ++++++++++++------------- 3 files changed, 79 insertions(+), 79 deletions(-) diff --git a/src/flac/Makefile.vc b/src/flac/Makefile.vc index e0d7cdf1..1dc4ec6f 100644 --- a/src/flac/Makefile.vc +++ b/src/flac/Makefile.vc @@ -1,25 +1,25 @@ -!include - -!IFDEF DEBUG -.c.obj: - $(cc) $(cdebug) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -YX /Od /D "_DEBUG" $< -!else -.c.obj: - $(cc) $(cdebug) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -YX /O2 -DNODEBUG $< -!endif - -C_FILES= \ - decode.c \ - encode.c \ - main.c - -OBJS= $(C_FILES:.c=.obj) - -all: flac.exe - -flac.exe: $(OBJS) - link.exe /libpath:"..\..\obj\lib" -out:../../obj/bin/$*.exe $(OBJS) libFLAC.lib - -clean: - -del *.obj *.pch - -del ..\..\obj\bin\flac.exe +!include + +!IFDEF DEBUG +.c.obj: + $(cc) $(cdebug) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -YX /Od /D "_DEBUG" $< +!else +.c.obj: + $(cc) /O2 $(crelease) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -YX -DNODEBUG $< +!endif + +C_FILES= \ + decode.c \ + encode.c \ + main.c + +OBJS= $(C_FILES:.c=.obj) + +all: flac.exe + +flac.exe: $(OBJS) + link.exe /libpath:"..\..\obj\lib" -out:../../obj/bin/$*.exe $(OBJS) libFLAC.lib + +clean: + -del *.obj *.pch + -del ..\..\obj\bin\flac.exe diff --git a/src/libFLAC/Makefile.vc b/src/libFLAC/Makefile.vc index 5bccf54b..914e7bc6 100644 --- a/src/libFLAC/Makefile.vc +++ b/src/libFLAC/Makefile.vc @@ -1,31 +1,31 @@ -!include - -!IFDEF DEBUG -.c.obj: - $(cc) /D FLAC_OVERFLOW_DETECT /GX $(cdebug) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -YX /Od /D "_DEBUG" $< -!else -.c.obj: - $(cc) $(cdebug) $(cflags) /O2 /I "..\..\include" /I ".\include" -DSTRICT -YX -DNODEBUG $< -!endif - -C_FILES= \ - bitbuffer.c \ - crc.c \ - encoder.c \ - encoder_framing.c \ - file_decoder.c \ - fixed.c \ - format.c \ - lpc.c \ - stream_decoder.c - -OBJS= $(C_FILES:.c=.obj) - -all: libFLAC.lib - -libFLAC.lib: $(OBJS) - link.exe -lib -out:../../obj/lib/$*.lib $(OBJS) - -clean: - -del *.obj *.pch - -del ..\..\obj\lib\libFLAC.lib ..\..\obj\lib\libFLAC.pdb +!include + +!IFDEF DEBUG +.c.obj: + $(cc) /D FLAC_OVERFLOW_DETECT /GX $(cdebug) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -YX /Od /D "_DEBUG" $< +!else +.c.obj: + $(cc) /O2 $(crelease) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -YX -DNODEBUG $< +!endif + +C_FILES= \ + bitbuffer.c \ + crc.c \ + encoder.c \ + encoder_framing.c \ + file_decoder.c \ + fixed.c \ + format.c \ + lpc.c \ + stream_decoder.c + +OBJS= $(C_FILES:.c=.obj) + +all: libFLAC.lib + +libFLAC.lib: $(OBJS) + link.exe -lib -out:../../obj/lib/$*.lib $(OBJS) + +clean: + -del *.obj *.pch + -del ..\..\obj\lib\libFLAC.lib ..\..\obj\lib\libFLAC.pdb diff --git a/src/plugin_winamp2/Makefile.vc b/src/plugin_winamp2/Makefile.vc index 38a99ee4..9364844e 100644 --- a/src/plugin_winamp2/Makefile.vc +++ b/src/plugin_winamp2/Makefile.vc @@ -1,23 +1,23 @@ -!include - -!IFNDEF NODEBUG -.c.obj: - $(cc) /GX $(cdebug) $(cflags) $(cvarsdll) /I "..\..\include" /I ".\include" -DSTRICT -YX /Od /D "_DEBUG" $< -!else -.c.obj: - $(cc) $(cdebug) $(cflags) $(cvarsdll) /I "..\..\include" /I ".\include" -DSTRICT -YX -DNODEBUG $< -!endif - -C_FILES= \ - in_flac.c - -OBJS= $(C_FILES:.c=.obj) - -all: in_flac.dll - -in_flac.dll: $(OBJS) - link.exe /dll /libpath:"..\..\obj\lib" -out:../../obj/bin/$*.dll $(OBJS) libFLAC.lib user32.lib kernel32.lib - -clean: - -del *.obj *.pch - -del ..\..\obj\bin\in_flac.* +!include + +!IFDEF DEBUG +.c.obj: + $(cc) /GX $(cdebug) $(cflags) $(cvarsdll) /I "..\..\include" /I ".\include" -DSTRICT -YX /Od /D "_DEBUG" $< +!else +.c.obj: + $(cc) /O2 $(crelease) $(cflags) $(cvarsdll) /I "..\..\include" /I ".\include" -DSTRICT -YX -DNODEBUG $< +!endif + +C_FILES= \ + in_flac.c + +OBJS= $(C_FILES:.c=.obj) + +all: in_flac.dll + +in_flac.dll: $(OBJS) + link.exe /dll /libpath:"..\..\obj\lib" -out:../../obj/bin/$*.dll $(OBJS) libFLAC.lib user32.lib kernel32.lib + +clean: + -del *.obj *.pch + -del ..\..\obj\bin\in_flac.*