Initial port of RIFF-WAVE (.wav) sound datatype (v50.3) by Fredrik Wikstrom <fredrik...
[AROS.git] / workbench / classes / datatypes / wav / gsm / Makefile.in
blob9d93f4518b7b57e66a107760643844da2215155b
2 # @configure_input@
5 VPATH = @srcdir@
6 srcdir = @srcdir@
7 top_srcdir = @top_srcdir@
8 prefix = @prefix@
9 exec_prefix = @exec_prefix@
10 libdir = @libdir@
11 mandir = @mandir@
13 # Shell commands.
15 CC = @CC@
16 RANLIB = @RANLIB@
17 INSTALL = @INSTALL@
18 AR = ar r
19 RM = rm -f
21 SASR = -DSASR
22 ######### Define SASR if >> is a signed arithmetic shift (-1 >> 1 == -1)
24 MULHACK = -DUSE_FLOAT_MUL
25 ######### Define this if your host multiplies floats faster than integers,
26 ######### e.g. on a SPARCstation.
28 FAST = -DFAST
29 ######### Define together with USE_FLOAT_MUL to enable the GSM library's
30 ######### approximation option for incorrect, but good-enough results.
32 # LTP_CUT = -DLTP_CUT
33 LTP_CUT =
34 ######### Define to enable the GSM library's long-term correlation
35 ######### approximation option---faster, but worse; works for
36 ######### both integer and floating point multiplications.
37 ######### This flag is still in the experimental stage.
39 WAV49 = -DWAV49
40 #WAV49 =
41 ######### Define to enable the GSM library's option to pack GSM frames
42 ######### in the style used by the WAV #49 format. If you want to write
43 ######### a tool that produces .WAV files which contain GSM-encoded data,
44 ######### define this, and read about the GSM_OPT_WAV49 option in the
45 ######### manual page on gsm_option(3).
47 # Build macros.
49 CFLAGS = @CFLAGS@ @DEFS@ $(SASR) $(MULHAC) $(FAST) $(LTP_CUT) $(WAV49) -I$(top_srcdir)/gsm
50 LDFLAGS = @LDFLAGS@
51 LIBS = @LIBS@
53 # Objects.
55 GSM_OBJECTS = add.o \
56 code.o \
57 decode.o \
58 long_term.o \
59 lpc.o \
60 preprocess.o \
61 rpe.o \
62 gsm_destroy.o \
63 gsm_decode.o \
64 gsm_encode.o \
65 gsm_create.o \
66 gsm_option.o \
67 short_term.o \
68 table.o
71 LIBOBJS = $(GSM_OBJECTS)
73 all: libgsm.a
75 libgsm.a: $(LIBOBJS)
76 $(AR) libgsm.a $(LIBOBJS)
77 $(RANLIB) libgsm.a
79 install-lib: libgsm.a
80 $(top_srcdir)/mkinstalldirs $(libdir)
81 $(top_srcdir)/mkinstalldirs $(mandir)/man3
82 $(INSTALL) -c -m 644 libgsm.a $(libdir)
83 $(RANLIB) $(libdir)/libgsm.a
84 $(INSTALL) -c -m 644 gsm.3 $(mandir)/man3
85 $(INSTALL) -c -m 644 gsm_option.3 $(mandir)/man3
87 uninstall-lib:
88 $(RM) $(libdir)/libgsm.a
89 $(RM) $(mandir)/man3/gsm.3
90 $(RM) $(mandir)/man3/gsm_option.3
92 clean:
93 $(RM) *.o libgsm.a
95 distclean:
96 $(RM) *~ *.o core libgsm.a
97 $(RM) Makefile