summaryrefslogtreecommitdiff
path: root/test/Makefile.alt
diff options
context:
space:
mode:
authorJinkun Jang <jinkun.jang@samsung.com>2013-03-13 01:44:24 +0900
committerJinkun Jang <jinkun.jang@samsung.com>2013-03-13 01:44:24 +0900
commite28f3aee8eca3cc7a10935f63899d5c4f6ba1ede (patch)
tree3e9da8eb6a913278403e100d0bbe0b9231a4b6ac /test/Makefile.alt
parent54f90e8fa8d02c96e2c6d0a5bd71603dc016cf70 (diff)
downloadopencore-amr-e28f3aee8eca3cc7a10935f63899d5c4f6ba1ede.tar.gz
opencore-amr-e28f3aee8eca3cc7a10935f63899d5c4f6ba1ede.tar.bz2
opencore-amr-e28f3aee8eca3cc7a10935f63899d5c4f6ba1ede.zip
Tizen 2.1 base
Diffstat (limited to 'test/Makefile.alt')
-rw-r--r--test/Makefile.alt23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/Makefile.alt b/test/Makefile.alt
new file mode 100644
index 0000000..afab10e
--- /dev/null
+++ b/test/Makefile.alt
@@ -0,0 +1,23 @@
+CFLAGS = -Wall -pedantic -I../amrnb -I../amrwb
+CXXFLAGS = $(CFLAGS)
+LDFLAGS = -L../amrnb -L../amrwb
+
+all: amrnb-dec amrnb-enc amrwb-dec
+
+amrnb-dec: amrnb-dec.o wav.o
+ $(CXX) -o $@ $+ $(LDFLAGS) -lopencore-amrnb
+
+amrnb-enc: amrnb-enc.o
+ $(CC) -o $@ $+ $(LDFLAGS) -lm -lopencore-amrnb
+
+amrwb-dec: amrwb-dec.o wav.o
+ $(CXX) -o $@ $+ $(LDFLAGS) -lopencore-amrwb
+
+# To check that both libraries can be linked in statically at the same
+# time without duplicate symbols
+linkboth: linkboth.o
+ $(CC) -static -o $@ $+ $(LDFLAGS) -lopencore-amrnb -lopencore-amrwb
+
+clean:
+ rm -f amrnb-dec amrnb-enc amrwb-dec linkboth *.o out.wav out.amr
+