summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2007-09-13 00:38:08 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2007-09-13 00:38:08 +0000
commit703d0d4aa70869927024540ad0f50e0df49aa89b (patch)
tree18eda11afbd96ffeff0bc71a124365bc0dc7c275 /examples
parent9f28b59ce161cecb7ebf801eb0c7f39f40f9918b (diff)
downloadflac-703d0d4aa70869927024540ad0f50e0df49aa89b.tar.gz
add encoder examples
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.lite12
-rw-r--r--examples/README3
-rw-r--r--examples/c/Makefile.am2
-rw-r--r--examples/cpp/Makefile.am2
4 files changed, 15 insertions, 4 deletions
diff --git a/examples/Makefile.lite b/examples/Makefile.lite
index 48bdd2d9..abfe657e 100644
--- a/examples/Makefile.lite
+++ b/examples/Makefile.lite
@@ -15,8 +15,8 @@
# restrictive of those mentioned above. See the file COPYING.Xiph in this
# distribution.
-.PHONY: all example_c_decode_file example_cpp_decode_file
-all: example_c_decode_file example_cpp_decode_file
+.PHONY: all example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file
+all: example_c_decode_file example_c_encode_file example_cpp_decode_file example_cpp_encode_file
DEFAULT_CONFIG = release
@@ -33,9 +33,17 @@ release : all
example_c_decode_file:
(cd c/decode/file && $(MAKE) -f Makefile.lite $(CONFIG))
+example_c_encode_file:
+ (cd c/encode/file && $(MAKE) -f Makefile.lite $(CONFIG))
+
example_cpp_decode_file:
(cd cpp/decode/file && $(MAKE) -f Makefile.lite $(CONFIG))
+example_cpp_encode_file:
+ (cd cpp/encode/file && $(MAKE) -f Makefile.lite $(CONFIG))
+
clean:
-(cd c/decode/file && $(MAKE) -f Makefile.lite clean)
+ -(cd c/encode/file && $(MAKE) -f Makefile.lite clean)
-(cd cpp/decode/file && $(MAKE) -f Makefile.lite clean)
+ -(cd cpp/encode/file && $(MAKE) -f Makefile.lite clean)
diff --git a/examples/README b/examples/README
index 2f30e64d..0c51ff97 100644
--- a/examples/README
+++ b/examples/README
@@ -7,3 +7,6 @@ The "cpp" directory has analogous programs that are all in C++ and use libFLAC++
The programs are:
c/decode/file/ - example_c_decode_file - Simple FLAC file decoder using libFLAC
+c/encode/file/ - example_c_encode_file - Simple FLAC file encoder using libFLAC
+cpp/decode/file/ - example_cpp_decode_file - Simple FLAC file decoder using libFLAC++
+cpp/encode/file/ - example_cpp_encode_file - Simple FLAC file encoder using libFLAC++
diff --git a/examples/c/Makefile.am b/examples/c/Makefile.am
index e657f9e2..b88dca68 100644
--- a/examples/c/Makefile.am
+++ b/examples/c/Makefile.am
@@ -15,4 +15,4 @@
# restrictive of those mentioned above. See the file COPYING.Xiph in this
# distribution.
-SUBDIRS = decode
+SUBDIRS = decode encode
diff --git a/examples/cpp/Makefile.am b/examples/cpp/Makefile.am
index e657f9e2..b88dca68 100644
--- a/examples/cpp/Makefile.am
+++ b/examples/cpp/Makefile.am
@@ -15,4 +15,4 @@
# restrictive of those mentioned above. See the file COPYING.Xiph in this
# distribution.
-SUBDIRS = decode
+SUBDIRS = decode encode