rename i386 to ia32 everywhere
[platform/upstream/flac.git] / src / libFLAC / Makefile.vc
1 #  libFLAC - Free Lossless Audio Codec library\r
2 #  Copyright (C) 2001  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 FLAC__CPU_IA32 /D FLAC__HAS_NASM /D FLAC__PRECOMPUTE_PARTITION_SUMS /D FLAC__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 FLAC__CPU_IA32 /D FLAC__HAS_NASM /D FLAC__PRECOMPUTE_PARTITION_SUMS /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         fixed.c \\r
38         format.c \\r
39         lpc.c \\r
40         md5.c \\r
41         memory.c \\r
42         seek_table.c \\r
43         stream_decoder.c \\r
44         stream_encoder.c \\r
45         stream_encoder_framing.c\r
46 \r
47 NASM_FILES= \\r
48         ia32/cpu_asm.nasm \\r
49         ia32/fixed_asm.nasm \\r
50         ia32/lpc_asm.nasm\r
51 \r
52 OBJS= $(C_FILES:.c=.obj) $(NASM_FILES:.nasm=.obj)\r
53 \r
54 all: libFLAC.lib\r
55 \r
56 libFLAC.lib: $(OBJS)\r
57         link.exe -lib -out:../../obj/lib/$*.lib $(OBJS)\r
58 \r
59 ia32/cpu_asm.obj: ia32/cpu_asm.nasm\r
60         $(NASM) -f win32 -d WIN32 -i ia32/ ia32/cpu_asm.nasm -o ia32/cpu_asm.obj\r
61 ia32/fixed_asm.obj: ia32/fixed_asm.nasm\r
62         $(NASM) -f win32 -d WIN32 -i ia32/ ia32/fixed_asm.nasm -o ia32/fixed_asm.obj\r
63 ia32/lpc_asm.obj: ia32/lpc_asm.nasm\r
64         $(NASM) -f win32 -d WIN32 -i ia32/ ia32/lpc_asm.nasm -o ia32/lpc_asm.obj\r
65 \r
66 clean:\r
67         -del *.obj ia32\*.obj *.pch\r
68         -del ..\..\obj\lib\libFLAC.lib ..\..\obj\lib\libFLAC.pdb\r