5bccf54bf53c564338963664d4f9c0513cdd228a
[flac.git] / src / libFLAC / Makefile.vc
1 !include <win32.mak>
2
3 !IFDEF DEBUG
4 .c.obj:
5         $(cc) /D FLAC_OVERFLOW_DETECT /GX $(cdebug) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -YX /Od /D "_DEBUG" $<
6 !else
7 .c.obj:
8         $(cc) $(cdebug) $(cflags) /O2 /I "..\..\include" /I ".\include" -DSTRICT -YX -DNODEBUG $<
9 !endif
10
11 C_FILES= \
12         bitbuffer.c \
13         crc.c \
14         encoder.c \
15         encoder_framing.c \
16         file_decoder.c \
17         fixed.c \
18         format.c \
19         lpc.c \
20         stream_decoder.c
21
22 OBJS= $(C_FILES:.c=.obj)
23
24 all: libFLAC.lib
25
26 libFLAC.lib: $(OBJS)
27         link.exe -lib -out:../../obj/lib/$*.lib $(OBJS)
28
29 clean:
30         -del *.obj *.pch
31         -del ..\..\obj\lib\libFLAC.lib ..\..\obj\lib\libFLAC.pdb