openbsd-ports/audio/audacity/patches/patch-src_Makefile_in
ajacoutot 7a9dcfa8fc - update to version 1.3.2
big thanks to Martynas Venckus for his work on regression tests

"go ahead!" jasper@
2006-12-17 12:12:58 +00:00

70 lines
1.9 KiB
Plaintext

$OpenBSD: patch-src_Makefile_in,v 1.3 2006/12/17 12:12:59 ajacoutot Exp $
--- src/Makefile.in.orig Sun Oct 29 02:05:27 2006
+++ src/Makefile.in Sat Dec 9 21:04:47 2006
@@ -176,12 +176,9 @@ OBJS = \
widgets/Grid.o \
widgets/ImageRoll.o \
widgets/Meter.o \
- widgets/MultiDialog.o \
widgets/Ruler.o \
widgets/TimeTextCtrl.o \
- widgets/Warning.o \
xml/XMLFileReader.o \
- xml/XMLWriter.o \
@OPTOBJS@
TEMPORARILY_DISABLED_IMPORTER_OBJS = \
@@ -189,23 +186,33 @@ TEMPORARILY_DISABLED_IMPORTER_OBJS = \
import/ImportPCM.o \
import/ImportRaw.o \
-LIBAUDACITY_OBJS = \
+LIBAUDACITY_OBJS_CORE = \
BlockFile.o \
Dither.o \
- DirManager.o \
FileFormats.o \
- Prefs.o \
SampleFormat.o \
Sequence.o \
Internat.o \
+ widgets/MultiDialog.o \
+ widgets/Warning.o \
blockfile/LegacyBlockFile.o \
blockfile/LegacyAliasBlockFile.o \
blockfile/SilentBlockFile.o \
blockfile/SimpleBlockFile.o \
blockfile/PCMAliasBlockFile.o \
xml/XMLTagHandler.o \
+ xml/XMLWriter.o \
+LIBAUDACITY_OBJS_NO_PROJECT_LEVEL = \
+ DirManager_no_project_level.o \
+ Prefs_no_project_level.o \
+LIBAUDACITY_OBJS = \
+ DirManager.o \
+ Prefs.o \
+ $(LIBAUDACITY_OBJS_CORE) \
+
+
########################################
# DEPENDENCIES
@@ -214,7 +221,14 @@ LIBAUDACITY_SOURCES = $(LIBAUDACITY_OBJS
########################################
-all: $(DIRS) libaudacity.a ../audacity $(EXTRATARGETS)
+all: $(DIRS) libaudacity.a libaudacity_tests.a ../audacity $(EXTRATARGETS)
+
+no_project_level:
+ $(CCC) -c $(CXXFLAGS) $(CPPFLAGS) -DNO_PROJECT_LEVEL -o DirManager_no_project_level.o DirManager.cpp
+ $(CCC) -c $(CXXFLAGS) $(CPPFLAGS) -DNO_PROJECT_LEVEL -o Prefs_no_project_level.o Prefs.cpp
+
+libaudacity_tests.a: no_project_level
+ ar rcs libaudacity_tests.a $(LIBAUDACITY_OBJS_NO_PROJECT_LEVEL) $(LIBAUDACITY_OBJS_CORE)
libaudacity.a: $(LIBAUDACITY_OBJS)
ar rcs libaudacity.a $(LIBAUDACITY_OBJS)