blob: c162dbb6184c27e1ab3e9671e3e464ae2a5171b0 [file] [log] [blame]
Josh Coalsona86f8702002-08-20 04:03:24 +00001# test_libOggFLAC++ - Unit tester for libOggFLAC++
Josh Coalsonafae69f2003-01-02 07:03:16 +00002# Copyright (C) 2002,2003 Josh Coalson
Josh Coalsona86f8702002-08-20 04:03:24 +00003#
4# This program is free software; you can redistribute it and/or
5# modify it under the terms of the GNU General Public License
6# as published by the Free Software Foundation; either version 2
7# of the License, or (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18!include <win32.mak>
19
Josh Coalson18db4f42002-10-16 22:28:38 +000020SUFFIXES = .cpp
Josh Coalsona86f8702002-08-20 04:03:24 +000021
22!IFDEF DEBUG
23.c.obj:
Josh Coalson75d78a32003-01-08 08:06:53 +000024 $(cc) -DFLAC__NO_DLL $(cdebug) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -DVERSION=\"1.0.5_beta2\" -YX /Od /D "_DEBUG" $<
Josh Coalsona86f8702002-08-20 04:03:24 +000025!else
26.c.obj:
Josh Coalson75d78a32003-01-08 08:06:53 +000027 $(cc) -DFLAC__NO_DLL /O2 $(crelease) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -DVERSION=\"1.0.5_beta2\" -YX -DNODEBUG $<
Josh Coalsona86f8702002-08-20 04:03:24 +000028!endif
29
30!IFDEF DEBUG
Josh Coalson18db4f42002-10-16 22:28:38 +000031.cpp.obj:
Josh Coalson88064942002-10-18 06:14:09 +000032 $(cc) -DFLAC__NO_DLL /GR /D "_LIB" /GX $(cdebug) $(cflags) /I "..\..\include" -DSTRICT -YX /Od /D "_DEBUG" $<
Josh Coalsona86f8702002-08-20 04:03:24 +000033!else
Josh Coalson18db4f42002-10-16 22:28:38 +000034.cpp.obj:
Josh Coalson88064942002-10-18 06:14:09 +000035 $(cc) -DFLAC__NO_DLL /GR /D "_LIB" /O2 $(crelease) $(cflags) /I "..\..\include" -DSTRICT -YX -DNODEBUG $<
Josh Coalsona86f8702002-08-20 04:03:24 +000036!endif
37
38C_FILES= \
Josh Coalson26dff912003-01-10 05:39:00 +000039 file_utils.c \
40 metadata_utils.c
Josh Coalsona86f8702002-08-20 04:03:24 +000041
Josh Coalson18db4f42002-10-16 22:28:38 +000042CPP_FILES= \
43 decoders.cpp \
44 encoders.cpp \
45 main.cpp
Josh Coalsona86f8702002-08-20 04:03:24 +000046
47C_OBJS= $(C_FILES:.c=.obj)
Josh Coalson18db4f42002-10-16 22:28:38 +000048CPP_OBJS= $(CPP_FILES:.cpp=.obj)
Josh Coalsona86f8702002-08-20 04:03:24 +000049
50all: test_libOggFLAC++.exe
51
Josh Coalson18db4f42002-10-16 22:28:38 +000052test_libOggFLAC++.exe: $(C_OBJS) $(CPP_OBJS)
Josh Coalson44ca9fe2002-12-04 06:57:38 +000053 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
Josh Coalsona86f8702002-08-20 04:03:24 +000054
55clean:
56 -del *.obj *.pch
Josh Coalsonfcc7a682002-11-22 07:50:26 +000057 -del ..\..\obj\release\bin\test_libOggFLAC++.exe