diff intercom/g711/makefile.unx @ 2:13be24d74cd2

import intercom-0.4.1
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Fri, 25 Jun 2010 09:57:52 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/intercom/g711/makefile.unx	Fri Jun 25 09:57:52 2010 +0200
@@ -0,0 +1,108 @@
+# -----------------------------------------------------------------------------
+#	Unix makefile for compiling and testing the UGST G.711 implementation
+#	01.May.94 - Implemented by <simao@cpqd.ansp.br>
+#       01.Mar.95 - Updated for test procedure <simao@ctd.comsat.com>
+# -----------------------------------------------------------------------------
+
+# ------------------------------------------------
+# Choose an AWK; suggest use GNU version 
+#                (available via anonymous ftp) 
+# ------------------------------------------------
+AWK = gawk
+AWK_CMD = '$$6~/[0-9]+:[0-9][0-9]/ {print "sb -over",$$NF};END{print "exit"}'
+
+# ----------------------------------------------------------------------
+# Choose compiler. Sun: use cc. HP: gotta use gcc make ... CC=\$\(GCC\)
+# ----------------------------------------------------------------------
+GCC = gcc -fno-builtin -Wall
+CC_OPT = -I../utl
+
+# ------------------------------------------------
+# Choose an archiving utility: 
+#	- public domain unzip, or [PC/Unix/VMS]
+#	- shareware pkunzip [PC only]
+# ------------------------------------------------
+#UNZIP = -pkunzip
+UNZIP = unzip -o
+
+# ------------------------------------------------
+# Choose a file comparison utility: 
+# ------------------------------------------------
+DIFF = cf -q
+
+# ------------------------------------------------
+# General purpose symbols
+# ------------------------------------------------
+RM=rm -f
+DEMO=./g711demo
+REF_VECTORS= sweep-r.a sweep-r.a-a sweep-r.rea sweep-r.reu \
+	sweep-r.u sweep-r.u-u sweep.src 
+TEST_VECTORS = sweep.a sweep.a-a sweep.rea sweep.reu sweep.u sweep.u-u
+G711_OBJ = g711.o g711demo.o
+
+# ------------------------------------------------
+# Generic rules
+# ------------------------------------------------
+.c.o:
+	$(CC) $(CC_OPT) -c $<
+
+# ------------------------------------------------
+# Targets
+# ------------------------------------------------
+all:: g711demo
+
+anyway: clean g711demo
+
+clean:
+	$(RM) $(G711_OBJ)
+
+cleantest:
+	$(RM) $(TEST_VECTORS) $(REF_VECTORS) 
+
+veryclean: clean cleantest
+	$(RM) g711demo.exe
+
+# ------------------------------------------------
+# Specific rules
+# ------------------------------------------------
+g711demo:	g711demo.o g711.o
+	$(CC) -o g711demo g711demo.o g711.o -lm
+
+shiftbit:	shiftbit.c ugstdemo.h
+	$(CC) -o shiftbit shiftbit.c
+
+# ------------------------------------------------
+# Test portability
+# Note: there are no compliance test vectors associated with the G711 module
+# ------------------------------------------------
+test: proc comp
+
+proc:	sweep.src
+	# sweep-r.* have been generated from sweep.src in a reference environment
+	# results of the comparisons shall yield 0 different samples!
+	$(DEMO) A lilo sweep.src sweep.a 256 1 256
+	$(DEMO) u lilo sweep.src sweep.u 256 1 256
+	$(DEMO) A lili sweep.src sweep.a-a 256 1 256
+	$(DEMO) u lili sweep.src sweep.u-u 256 1 256
+	$(DEMO) A loli sweep.a sweep.rea 256 1 256
+	$(DEMO) u loli sweep.u sweep.reu 256 1 256
+
+comp: 	sweep-r.u-u
+	$(DIFF) sweep.a   sweep-r.a 
+	$(DIFF) sweep.a-a sweep-r.a-a 
+	$(DIFF) sweep.rea sweep-r.rea 
+	$(DIFF) sweep.reu sweep-r.reu 
+	$(DIFF) sweep.u   sweep-r.u 
+	$(DIFF) sweep.u-u sweep-r.u-u 
+
+# ------------------------------------------------
+# Extract from archive, if necessary
+# ------------------------------------------------
+sweep.src:	tst-g711.zip
+	$(UNZIP) tst-g711.zip sweep.src 
+	swapover -if little sweep.src
+
+sweep-r.u-u:	tst-g711.zip
+	$(UNZIP) tst-g711.zip sweep-r.*
+	swapover -if little sweep-r.*
+

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.