1 # libFLAC - Free Lossless Audio Codec library
\r
2 # Copyright (C) 2001,2002 Josh Coalson
\r
4 # This library is free software; you can redistribute it and/or
\r
5 # modify it under the terms of the GNU Library General Public
\r
6 # License as published by the Free Software Foundation; either
\r
7 # version 2 of the License, or (at your option) any later version.
\r
9 # This library is distributed in the hope that it will be useful,
\r
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
12 # Library General Public License for more details.
\r
14 # You should have received a copy of the GNU Library General Public
\r
15 # License along with this library; if not, write to the
\r
16 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
\r
17 # Boston, MA 02111-1307, USA.
\r
19 !include <win32.mak>
\r
25 $(cc) /D "_LIB" /D FLAC__CPU_IA32 /D FLAC__HAS_NASM /D NO_VFORK /D FLAC__OVERFLOW_DETECT /GX $(cdebug) $(cflags) /I ".\include" /I "..\..\include" -DSTRICT -YX /Od /D "_DEBUG" $<
\r
28 $(cc) /D "_LIB" /D FLAC__CPU_IA32 /D FLAC__HAS_NASM /D NO_VFORK /O2 $(crelease) $(cflags) /I ".\include" /I "..\..\include" -DSTRICT -YX -DNODEBUG $<
\r
44 seekable_stream_decoder.c \
\r
47 stream_encoder_framing.c
\r
51 ia32/fixed_asm.nasm \
\r
54 OBJS= $(C_FILES:.c=.obj) $(NASM_FILES:.nasm=.obj)
\r
56 all: ordinals libFLAC.lib
\r
58 ordinals: ../../include/FLAC/ordinals.h
\r
59 ../../include/FLAC/ordinals.h: ../../include/FLAC/ordinals.h.in
\r
60 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
62 libFLAC.lib: $(OBJS)
\r
63 link.exe -lib /nodefaultlib -out:../../obj/lib/$*.lib $(OBJS)
\r
65 ia32/cpu_asm.obj: ia32/cpu_asm.nasm
\r
66 $(NASM) -f win32 -d OBJ_FORMAT_win32 -i ia32/ ia32/cpu_asm.nasm -o ia32/cpu_asm.obj
\r
67 ia32/fixed_asm.obj: ia32/fixed_asm.nasm
\r
68 $(NASM) -f win32 -d OBJ_FORMAT_win32 -i ia32/ ia32/fixed_asm.nasm -o ia32/fixed_asm.obj
\r
69 ia32/lpc_asm.obj: ia32/lpc_asm.nasm
\r
70 $(NASM) -f win32 -d OBJ_FORMAT_win32 -i ia32/ ia32/lpc_asm.nasm -o ia32/lpc_asm.obj
\r
73 -del *.obj ia32\*.obj *.pch
\r
74 -del ..\..\obj\lib\libFLAC.lib ..\..\obj\lib\libFLAC.pdb
\r