Second patch from X-Fixer: tweaks for better MSVC build
[flac.git] / src / plugin_common / Makefile.vc
1 !include <win32.mak>\r
2 \r
3 !IFDEF DEBUG\r
4 .c.obj:\r
5         $(cc) /D "_LIB" /GX $(cdebug) $(cflags) /I ".\include" /I "..\..\include" -DFLAC__NO_DLL -DSTRICT -YX /Od /D "_DEBUG" $<\r
6 !else\r
7 .c.obj:\r
8         $(cc) /D "_LIB" /O2 $(crelease) $(cflags) /I ".\include" /I "..\..\include" -DFLAC__NO_DLL -DSTRICT -YX -DNODEBUG $<\r
9 !endif\r
10 \r
11 C_FILES= \\r
12         canonical_tag.c \\r
13         charset.c \\r
14         dither.c \\r
15         id3v1.c \\r
16         id3v2.c \\r
17         replaygain_synthesis.c \\r
18         vorbiscomment.c\r
19 \r
20 OBJS= $(C_FILES:.c=.obj)\r
21 \r
22 all: plugin_common_static.lib\r
23 \r
24 plugin_common_static.lib: $(OBJS)\r
25         link.exe -lib /nodefaultlib -out:../../obj/release/lib/$*.lib $(OBJS)\r
26 \r
27 clean:\r
28         -del *.obj *.pch\r
29         -del ..\..\obj\release\lib\plugin_common_static.lib ..\..\obj\release\lib\plugin_common_static.pdb\r