Add 2003 to copyright notice
[platform/upstream/flac.git] / src / test_libOggFLAC++ / Makefile.vc
1 #  test_libOggFLAC++ - Unit tester for libOggFLAC++\r
2 #  Copyright (C) 2002,2003  Josh Coalson\r
3 #\r
4 #  This program is free software; you can redistribute it and/or\r
5 #  modify it under the terms of the GNU General Public License\r
6 #  as published by the Free Software Foundation; either version 2\r
7 #  of the License, or (at your option) any later version.\r
8 #\r
9 #  This program 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\r
12 #  GNU General Public License for more details.\r
13 #\r
14 #  You should have received a copy of the GNU General Public License\r
15 #  along with this program; if not, write to the Free Software\r
16 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\r
17 \r
18 !include <win32.mak>\r
19 \r
20 SUFFIXES = .cpp\r
21 \r
22 !IFDEF DEBUG\r
23 .c.obj:\r
24         $(cc) -DFLAC__NO_DLL $(cdebug) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -DVERSION=\"1.0.4\" -YX /Od /D "_DEBUG" $<\r
25 !else\r
26 .c.obj:\r
27         $(cc) -DFLAC__NO_DLL /O2 $(crelease) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -DVERSION=\"1.0.4\" -YX -DNODEBUG $<\r
28 !endif\r
29 \r
30 !IFDEF DEBUG\r
31 .cpp.obj:\r
32         $(cc) -DFLAC__NO_DLL /GR /D "_LIB" /GX $(cdebug) $(cflags) /I "..\..\include" -DSTRICT -YX /Od /D "_DEBUG" $<\r
33 !else\r
34 .cpp.obj:\r
35         $(cc) -DFLAC__NO_DLL /GR /D "_LIB" /O2 $(crelease) $(cflags) /I "..\..\include" -DSTRICT -YX -DNODEBUG $<\r
36 !endif\r
37 \r
38 C_FILES= \\r
39         file_utils.c\r
40 \r
41 CPP_FILES= \\r
42         decoders.cpp \\r
43         encoders.cpp \\r
44         main.cpp\r
45 \r
46 C_OBJS= $(C_FILES:.c=.obj)\r
47 CPP_OBJS= $(CPP_FILES:.cpp=.obj)\r
48 \r
49 all: test_libOggFLAC++.exe\r
50 \r
51 test_libOggFLAC++.exe: $(C_OBJS) $(CPP_OBJS)\r
52         link.exe /libpath:"..\..\obj\release\lib" -out:../../obj/release/bin/$*.exe $(CPP_OBJS) $(C_OBJS) grabbag_static.lib gain_analysis_static.lib libOggFLAC++_static.lib libOggFLAC_static.lib libFLAC_static.lib ogg_static.lib\r
53 \r
54 clean:\r
55         -del *.obj *.pch\r
56         -del ..\..\obj\release\bin\test_libOggFLAC++.exe\r