Add 2003 to copyright notice
[platform/upstream/flac.git] / src / libFLAC / Makefile.vc
1 #  libFLAC - Free Lossless Audio Codec library\r
2 #  Copyright (C) 2001,2002,2003  Josh Coalson\r
3 #\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
8 #\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
13 #\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
18 \r
19 !include <win32.mak>\r
20 \r
21 NASM=nasmw\r
22 \r
23 !IFDEF DEBUG\r
24 .c.obj:\r
25         $(cc) /D "_LIB" -DVERSION=\"1.0.4\" -DFLAC__NO_DLL -DFLAC__CPU_IA32 -DFLAC__HAS_NASM -DFLAC__OVERFLOW_DETECT /GX $(cdebug) $(cflags) /I ".\include" /I "..\..\include" -DSTRICT -YX /Od /D "_DEBUG" $<\r
26 !else\r
27 .c.obj:\r
28         $(cc) /D "_LIB" -DVERSION=\"1.0.4\" -DFLAC__NO_DLL -DFLAC__CPU_IA32 -DFLAC__HAS_NASM /O2 $(crelease) $(cflags) /I ".\include" /I "..\..\include" -DSTRICT -YX -DNODEBUG $<\r
29 !endif\r
30 \r
31 C_FILES= \\r
32         bitbuffer.c \\r
33         bitmath.c \\r
34         cpu.c \\r
35         crc.c \\r
36         file_decoder.c \\r
37         file_encoder.c \\r
38         fixed.c \\r
39         format.c \\r
40         lpc.c \\r
41         md5.c \\r
42         memory.c \\r
43         metadata_iterators.c \\r
44         metadata_object.c \\r
45         seekable_stream_decoder.c \\r
46         seekable_stream_encoder.c \\r
47         stream_decoder.c \\r
48         stream_encoder.c \\r
49         stream_encoder_framing.c\r
50 \r
51 NASM_FILES= \\r
52         ia32/cpu_asm.nasm \\r
53         ia32/fixed_asm.nasm \\r
54         ia32/lpc_asm.nasm\r
55 \r
56 OBJS= $(C_FILES:.c=.obj) $(NASM_FILES:.nasm=.obj)\r
57 \r
58 all: ordinals libFLAC_static.lib\r
59 \r
60 ordinals: ../../include/FLAC/ordinals.h\r
61 ../../include/FLAC/ordinals.h: ../../include/FLAC/ordinals.h.in\r
62         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
63 \r
64 libFLAC_static.lib: $(OBJS)\r
65         link.exe -lib /nodefaultlib -out:../../obj/release/lib/$*.lib $(OBJS)\r
66 \r
67 ia32/cpu_asm.obj: ia32/cpu_asm.nasm\r
68         $(NASM) -f win32 -d OBJ_FORMAT_win32 -i ia32/ ia32/cpu_asm.nasm -o ia32/cpu_asm.obj\r
69 ia32/fixed_asm.obj: ia32/fixed_asm.nasm\r
70         $(NASM) -f win32 -d OBJ_FORMAT_win32 -i ia32/ ia32/fixed_asm.nasm -o ia32/fixed_asm.obj\r
71 ia32/lpc_asm.obj: ia32/lpc_asm.nasm\r
72         $(NASM) -f win32 -d OBJ_FORMAT_win32 -i ia32/ ia32/lpc_asm.nasm -o ia32/lpc_asm.obj\r
73 \r
74 clean:\r
75         -del *.obj ia32\*.obj *.pch\r
76         -del ..\..\obj\release\lib\libFLAC_static.lib ..\..\obj\release\lib\libFLAC_static.pdb\r