Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 1 | # test_libOggFLAC++ - Unit tester for libOggFLAC++
|
Josh Coalson | afae69f | 2003-01-02 07:03:16 +0000 | [diff] [blame] | 2 | # Copyright (C) 2002,2003 Josh Coalson
|
Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 3 | #
|
| 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 Coalson | 18db4f4 | 2002-10-16 22:28:38 +0000 | [diff] [blame] | 20 | SUFFIXES = .cpp
|
Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 21 |
|
| 22 | !IFDEF DEBUG
|
| 23 | .c.obj:
|
Josh Coalson | 75d78a3 | 2003-01-08 08:06:53 +0000 | [diff] [blame] | 24 | $(cc) -DFLAC__NO_DLL $(cdebug) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -DVERSION=\"1.0.5_beta2\" -YX /Od /D "_DEBUG" $<
|
Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 25 | !else
|
| 26 | .c.obj:
|
Josh Coalson | 75d78a3 | 2003-01-08 08:06:53 +0000 | [diff] [blame] | 27 | $(cc) -DFLAC__NO_DLL /O2 $(crelease) $(cflags) /I "..\..\include" /I ".\include" -DSTRICT -DVERSION=\"1.0.5_beta2\" -YX -DNODEBUG $<
|
Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 28 | !endif
|
| 29 |
|
| 30 | !IFDEF DEBUG
|
Josh Coalson | 18db4f4 | 2002-10-16 22:28:38 +0000 | [diff] [blame] | 31 | .cpp.obj:
|
Josh Coalson | 8806494 | 2002-10-18 06:14:09 +0000 | [diff] [blame] | 32 | $(cc) -DFLAC__NO_DLL /GR /D "_LIB" /GX $(cdebug) $(cflags) /I "..\..\include" -DSTRICT -YX /Od /D "_DEBUG" $<
|
Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 33 | !else
|
Josh Coalson | 18db4f4 | 2002-10-16 22:28:38 +0000 | [diff] [blame] | 34 | .cpp.obj:
|
Josh Coalson | 8806494 | 2002-10-18 06:14:09 +0000 | [diff] [blame] | 35 | $(cc) -DFLAC__NO_DLL /GR /D "_LIB" /O2 $(crelease) $(cflags) /I "..\..\include" -DSTRICT -YX -DNODEBUG $<
|
Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 36 | !endif
|
| 37 |
|
| 38 | C_FILES= \
|
Josh Coalson | 26dff91 | 2003-01-10 05:39:00 +0000 | [diff] [blame^] | 39 | file_utils.c \
|
| 40 | metadata_utils.c
|
Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 41 |
|
Josh Coalson | 18db4f4 | 2002-10-16 22:28:38 +0000 | [diff] [blame] | 42 | CPP_FILES= \
|
| 43 | decoders.cpp \
|
| 44 | encoders.cpp \
|
| 45 | main.cpp
|
Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 46 |
|
| 47 | C_OBJS= $(C_FILES:.c=.obj)
|
Josh Coalson | 18db4f4 | 2002-10-16 22:28:38 +0000 | [diff] [blame] | 48 | CPP_OBJS= $(CPP_FILES:.cpp=.obj)
|
Josh Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 49 |
|
| 50 | all: test_libOggFLAC++.exe
|
| 51 |
|
Josh Coalson | 18db4f4 | 2002-10-16 22:28:38 +0000 | [diff] [blame] | 52 | test_libOggFLAC++.exe: $(C_OBJS) $(CPP_OBJS)
|
Josh Coalson | 44ca9fe | 2002-12-04 06:57:38 +0000 | [diff] [blame] | 53 | 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 Coalson | a86f870 | 2002-08-20 04:03:24 +0000 | [diff] [blame] | 54 |
|
| 55 | clean:
|
| 56 | -del *.obj *.pch
|
Josh Coalson | fcc7a68 | 2002-11-22 07:50:26 +0000 | [diff] [blame] | 57 | -del ..\..\obj\release\bin\test_libOggFLAC++.exe
|