44 lines
1.7 KiB
Diff
44 lines
1.7 KiB
Diff
|
From 2ec1754dc9863f87cc193d3e33b05fbe52ac4036 Mon Sep 17 00:00:00 2001
|
||
|
From: David Runge <dave@sleepmap.de>
|
||
|
Date: Tue, 20 Dec 2022 21:41:18 +0100
|
||
|
Subject: [PATCH] Revert "Correct and document sound2reader Makefile."
|
||
|
|
||
|
This reverts commit d1fe8570d2d77839359c0cd6c13bb4abc0c7efb5.
|
||
|
---
|
||
|
tools/sound2faust/Makefile | 7 +++++--
|
||
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/tools/sound2faust/Makefile b/tools/sound2faust/Makefile
|
||
|
index 3f7114263..5d779d158 100644
|
||
|
--- a/tools/sound2faust/Makefile
|
||
|
+++ b/tools/sound2faust/Makefile
|
||
|
@@ -12,20 +12,23 @@ LIBS = -lwsock32
|
||
|
EXE = .exe
|
||
|
endif
|
||
|
|
||
|
-all : static
|
||
|
+all : sound2faust sound2file
|
||
|
|
||
|
sound2faust : sound2faust.cpp
|
||
|
+
|
||
|
$(CXX) -O3 $(LDFLAGS) sound2faust.cpp -I../../architecture $(shell pkg-config --cflags --static --libs sndfile) -o sound2faust $(LIBS)
|
||
|
|
||
|
sound2file : sound2file.cpp
|
||
|
+
|
||
|
$(CXX) -O3 $(LDFLAGS) sound2file.cpp -I../../architecture $(shell pkg-config --cflags --static --libs sndfile) -o sound2file $(LIBS)
|
||
|
|
||
|
static:
|
||
|
- # To compile libsndfile in static mode and no external libs: ./configure --enable-static=yes --enable-dynamic=no --disable-external-libs
|
||
|
+
|
||
|
$(CXX) -O3 $(LDFLAGS) sound2faust.cpp -I../../architecture $(shell pkg-config --cflags sndfile) /usr/local/lib/libsndfile.a -o sound2faust
|
||
|
$(CXX) -O3 $(LDFLAGS) sound2file.cpp -I../../architecture $(shell pkg-config --cflags sndfile) /usr/local/lib/libsndfile.a -o sound2file
|
||
|
|
||
|
install :
|
||
|
+
|
||
|
([ -e sound2faust ]) && install sound2faust $(prefix)/bin/ || echo sound2faust not found
|
||
|
([ -e sound2file ]) && install sound2file $(prefix)/bin/ || echo sound2file not found
|
||
|
([ -e sound2reader ]) && install sound2reader $(prefix)/bin/ || echo sound2reader not found
|
||
|
--
|
||
|
2.39.0
|
||
|
|