split most of FileDecoder off to new SeekableStreamDecoder
[platform/upstream/flac.git] / src / libFLAC / Makefile.vc
index 914e7bc..7adc789 100644 (file)
@@ -1,31 +1,74 @@
+#  libFLAC - Free Lossless Audio Codec library\r
+#  Copyright (C) 2001  Josh Coalson\r
+#\r
+#  This library is free software; you can redistribute it and/or\r
+#  modify it under the terms of the GNU Library General Public\r
+#  License as published by the Free Software Foundation; either\r
+#  version 2 of the License, or (at your option) any later version.\r
+#\r
+#  This library is distributed in the hope that it will be useful,\r
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
+#  Library General Public License for more details.\r
+#\r
+#  You should have received a copy of the GNU Library General Public\r
+#  License along with this library; if not, write to the\r
+#  Free Software Foundation, Inc., 59 Temple Place - Suite 330,\r
+#  Boston, MA  02111-1307, USA.\r
+\r
 !include <win32.mak>\r
 \r
+NASM=nasmw\r
+\r
 !IFDEF DEBUG\r
 .c.obj:\r
-       $(cc) /D FLAC_OVERFLOW_DETECT /GX $(cdebug) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -YX /Od /D "_DEBUG" $<\r
+       $(cc) /D FLAC__CPU_IA32 /D FLAC__HAS_NASM /D FLAC__OVERFLOW_DETECT /GX $(cdebug) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -YX /Od /D "_DEBUG" $<\r
 !else\r
 .c.obj:\r
-       $(cc) /O2 $(crelease) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -YX -DNODEBUG $<\r
+       $(cc) /D FLAC__CPU_IA32 /D FLAC__HAS_NASM /O2 $(crelease) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -YX -DNODEBUG $<\r
 !endif\r
 \r
 C_FILES= \\r
        bitbuffer.c \\r
+       bitmath.c \\r
+       cpu.c \\r
        crc.c \\r
-       encoder.c \\r
-       encoder_framing.c \\r
        file_decoder.c \\r
        fixed.c \\r
        format.c \\r
        lpc.c \\r
-       stream_decoder.c\r
+       md5.c \\r
+       memory.c \\r
+       seek_table.c \\r
+       seekable_stream_decoder.c \\r
+       stream_decoder.c \\r
+       stream_encoder.c \\r
+       stream_encoder_framing.c \\r
+       utility.c\r
+\r
+NASM_FILES= \\r
+       ia32/cpu_asm.nasm \\r
+       ia32/fixed_asm.nasm \\r
+       ia32/lpc_asm.nasm\r
 \r
-OBJS= $(C_FILES:.c=.obj)\r
+OBJS= $(C_FILES:.c=.obj) $(NASM_FILES:.nasm=.obj)\r
 \r
-all: libFLAC.lib\r
+all: ordinals libFLAC.lib\r
+\r
+ordinals: ../../include/FLAC/ordinals.h\r
+../../include/FLAC/ordinals.h: ../../include/FLAC/ordinals.h.in\r
+       sed -e 's/@FLaC__SIZE16@/short/g' -e 's/@FLaC__SIZE32@/int/g' -e 's/@FLaC__SIZE64@/long long/g' -e 's/@FLaC__USIZE16@/unsigned short/g' -e 's/@FLaC__USIZE32@/unsigned int/g' -e 's/@FLaC__USIZE64@/unsigned long long/g' ../../include/FLAC/ordinals.h.in > ../../include/FLAC/ordinals.h\r
 \r
 libFLAC.lib: $(OBJS)\r
        link.exe -lib -out:../../obj/lib/$*.lib $(OBJS)\r
 \r
+ia32/cpu_asm.obj: ia32/cpu_asm.nasm\r
+       $(NASM) -f win32 -d OBJ_FORMAT_win32 -i ia32/ ia32/cpu_asm.nasm -o ia32/cpu_asm.obj\r
+ia32/fixed_asm.obj: ia32/fixed_asm.nasm\r
+       $(NASM) -f win32 -d OBJ_FORMAT_win32 -i ia32/ ia32/fixed_asm.nasm -o ia32/fixed_asm.obj\r
+ia32/lpc_asm.obj: ia32/lpc_asm.nasm\r
+       $(NASM) -f win32 -d OBJ_FORMAT_win32 -i ia32/ ia32/lpc_asm.nasm -o ia32/lpc_asm.obj\r
+\r
 clean:\r
-       -del *.obj *.pch\r
+       -del *.obj ia32\*.obj *.pch\r
        -del ..\..\obj\lib\libFLAC.lib ..\..\obj\lib\libFLAC.pdb\r