1997-06-11 19:01:07 +00:00
|
|
|
*** Makefile.bak Thu May 22 15:10:44 1997
|
|
|
|
--- Makefile Wed Jun 11 22:36:10 1997
|
1996-11-11 23:17:44 +00:00
|
|
|
***************
|
1997-06-11 19:01:07 +00:00
|
|
|
*** 15,22 ****
|
|
|
|
# will tell you whether these components are present on your system.
|
|
|
|
# If they aren't, you need to install them before building Speak
|
|
|
|
# Freely.
|
|
|
|
! CC = cc -float -signed
|
|
|
|
! LFLAGS = -laudio -lcurses -lm
|
1996-11-11 23:17:44 +00:00
|
|
|
|
|
|
|
# SunOS 4.1.x
|
1997-06-11 19:01:07 +00:00
|
|
|
#CC = cc -fsingle -DOLDCC
|
|
|
|
--- 15,22 ----
|
|
|
|
# will tell you whether these components are present on your system.
|
|
|
|
# If they aren't, you need to install them before building Speak
|
|
|
|
# Freely.
|
|
|
|
! #CC = cc -float -signed
|
|
|
|
! #LFLAGS = -laudio -lcurses -lm
|
1996-11-11 23:17:44 +00:00
|
|
|
|
|
|
|
# SunOS 4.1.x
|
1997-06-11 19:01:07 +00:00
|
|
|
#CC = cc -fsingle -DOLDCC
|
1996-11-11 23:17:44 +00:00
|
|
|
***************
|
1997-06-11 19:01:07 +00:00
|
|
|
*** 46,53 ****
|
1996-11-11 23:17:44 +00:00
|
|
|
# Depending on how your driver handles non-blocking I/O,
|
|
|
|
# you may also have to add -DAUDIO_BLOCKING to the
|
|
|
|
# CCFLAGS line.
|
|
|
|
! #CCFLAGS = -DM_LITTLE_ENDIAN
|
|
|
|
! #LFLAGS = -lcurses -ltermcap -lcompat -lm
|
|
|
|
|
1997-06-11 19:01:07 +00:00
|
|
|
# ** Linux users please note: many Linux audio drivers are
|
|
|
|
# half-duplex, even through your sound card may actually
|
|
|
|
--- 46,53 ----
|
1996-11-11 23:17:44 +00:00
|
|
|
# Depending on how your driver handles non-blocking I/O,
|
|
|
|
# you may also have to add -DAUDIO_BLOCKING to the
|
|
|
|
# CCFLAGS line.
|
|
|
|
! CCFLAGS = -DM_LITTLE_ENDIAN
|
|
|
|
! LFLAGS = -lcurses -ltermcap -lcompat -lm
|
|
|
|
|
1997-06-11 19:01:07 +00:00
|
|
|
# ** Linux users please note: many Linux audio drivers are
|
|
|
|
# half-duplex, even through your sound card may actually
|
1996-11-11 23:17:44 +00:00
|
|
|
***************
|
1997-06-11 19:01:07 +00:00
|
|
|
*** 76,87 ****
|
1996-11-11 23:17:44 +00:00
|
|
|
#CCFLAGS = -DHEWLETT_PACKARD -DOLDCC
|
|
|
|
#LFLAGS = -lAlib -lcurses -ltermcap -lm
|
|
|
|
|
|
|
|
# Where Perl is located on your system. This is used to make
|
|
|
|
# a directly-executable version of sfvod.
|
|
|
|
! PERL = /usr/local/bin/perl
|
|
|
|
|
|
|
|
# If your audio hardware is half duplex, uncomment the next line
|
|
|
|
! #DUPLEX = -DHALF_DUPLEX
|
|
|
|
|
|
|
|
# If your getdomainname() does not return the DNS domainname, define:
|
|
|
|
#DOMAIN=-DMYDOMAIN=\"somedomain.net\"
|
1997-06-11 19:01:07 +00:00
|
|
|
--- 76,89 ----
|
1996-11-11 23:17:44 +00:00
|
|
|
#CCFLAGS = -DHEWLETT_PACKARD -DOLDCC
|
|
|
|
#LFLAGS = -lAlib -lcurses -ltermcap -lm
|
|
|
|
|
|
|
|
+ PREFIX=/usr/local
|
|
|
|
+
|
|
|
|
# Where Perl is located on your system. This is used to make
|
|
|
|
# a directly-executable version of sfvod.
|
|
|
|
! PERL = /usr/bin/perl
|
|
|
|
|
|
|
|
# If your audio hardware is half duplex, uncomment the next line
|
|
|
|
! DUPLEX = -DHALF_DUPLEX
|
|
|
|
|
|
|
|
# If your getdomainname() does not return the DNS domainname, define:
|
|
|
|
#DOMAIN=-DMYDOMAIN=\"somedomain.net\"
|
|
|
|
***************
|
1997-06-11 19:01:07 +00:00
|
|
|
*** 110,120 ****
|
1996-11-11 23:17:44 +00:00
|
|
|
CARGS = -DInternet_Port=$(INTERNET_PORT)
|
|
|
|
|
|
|
|
#DEBUG = -g -DHEXDUMP
|
|
|
|
! DEBUG = -O
|
|
|
|
|
|
|
|
# Compiler flags
|
|
|
|
|
|
|
|
! CFLAGS = $(DEBUG) -Iadpcm -Ilpc -Igsm/inc -Imd5 -Iidea -Ilibdes $(CARGS) -DRelno=$(REL) $(DUPLEX) $(CCFLAGS) $(DOMAIN)
|
|
|
|
|
|
|
|
PROGRAMS = sfspeaker sfmike sflwld sflwl sfecho sfvod
|
|
|
|
|
1997-06-11 19:01:07 +00:00
|
|
|
--- 112,130 ----
|
1996-11-11 23:17:44 +00:00
|
|
|
CARGS = -DInternet_Port=$(INTERNET_PORT)
|
|
|
|
|
|
|
|
#DEBUG = -g -DHEXDUMP
|
1997-06-11 19:01:07 +00:00
|
|
|
! #DEBUG = -O
|
1996-11-11 23:17:44 +00:00
|
|
|
!
|
|
|
|
! .if exists(/usr/lib/libdes.a)
|
|
|
|
! LDES=-ldes
|
|
|
|
! IDES=
|
|
|
|
! .else
|
|
|
|
! LDES=libdes/libdes.a
|
|
|
|
! IDES=-Ilibdes
|
|
|
|
! .endif
|
|
|
|
|
|
|
|
# Compiler flags
|
|
|
|
|
|
|
|
! CFLAGS += $(DEBUG) -Iadpcm -Ilpc -Iidea $(IDES) -I/usr/include -I${PREFIX}/include $(CARGS) -DRelno=$(REL) $(DUPLEX) $(CCFLAGS) $(DOMAIN)
|
|
|
|
|
|
|
|
PROGRAMS = sfspeaker sfmike sflwld sflwl sfecho sfvod
|
|
|
|
|
|
|
|
***************
|
1997-06-11 19:01:07 +00:00
|
|
|
*** 122,134 ****
|
1996-11-11 23:17:44 +00:00
|
|
|
|
|
|
|
SPKROBJS = speaker.o codecs.o deskey.o g711.o rate.o rtpacket.o soundbyte.o ulaw.o usleep.o vatpkt.o vox.o hp_audio.o
|
|
|
|
|
|
|
|
! sfspeaker: $(SPKROBJS) adpcmlib.o lpclib.o lpc10lib.o gsmlib.o deslib.o md5lib.o idealib.o libdes.o xdsub.o
|
|
|
|
! $(CC) $(SPKROBJS) adpcm/adpcm-u.o des/des.o md5/md5.o idea/idea.o lpc10/liblpc10.a gsm/lib/libgsm.a lpc/lpc.o xdsub.o libdes/libdes.a $(LFLAGS) -o sfspeaker
|
|
|
|
|
|
|
|
MIKEOBJS = mike.o codecs.o deskey.o g711.o rate.o rtpacket.o soundbyte.o ulaw.o usleep.o vatpkt.o xdsub.o hp_audio.o
|
|
|
|
|
|
|
|
! sfmike: $(MIKEOBJS) adpcmlib.o lpclib.o lpc10lib.o gsmlib.o deslib.o md5lib.o idealib.o libdes.o
|
|
|
|
! $(CC) $(MIKEOBJS) adpcm/adpcm-u.o des/des.o md5/md5.o idea/idea.o -lm lpc10/liblpc10.a gsm/lib/libgsm.a lpc/lpc.o libdes/libdes.a $(LFLAGS) -o sfmike
|
|
|
|
|
|
|
|
LWLDOBJS = lwld.o xdsub.o
|
|
|
|
|
1997-06-11 19:01:07 +00:00
|
|
|
--- 132,144 ----
|
1996-11-11 23:17:44 +00:00
|
|
|
|
|
|
|
SPKROBJS = speaker.o codecs.o deskey.o g711.o rate.o rtpacket.o soundbyte.o ulaw.o usleep.o vatpkt.o vox.o hp_audio.o
|
|
|
|
|
|
|
|
! sfspeaker: $(SPKROBJS) adpcmlib.o lpclib.o lpc10lib.o deslib.o idealib.o libdes.o xdsub.o
|
|
|
|
! $(CC) $(SPKROBJS) adpcm/adpcm-u.o des/des.o idea/idea.o lpc10/liblpc10.a -L${PREFIX}/lib -lgsm lpc/lpc.o xdsub.o -lmd $(LDES) $(LFLAGS) -o sfspeaker
|
|
|
|
|
|
|
|
MIKEOBJS = mike.o codecs.o deskey.o g711.o rate.o rtpacket.o soundbyte.o ulaw.o usleep.o vatpkt.o xdsub.o hp_audio.o
|
|
|
|
|
|
|
|
! sfmike: $(MIKEOBJS) adpcmlib.o lpclib.o lpc10lib.o deslib.o idealib.o libdes.o
|
|
|
|
! $(CC) $(MIKEOBJS) adpcm/adpcm-u.o des/des.o idea/idea.o lpc10/liblpc10.a -lm -L${PREFIX}/lib -lgsm lpc/lpc.o -lmd $(LDES) $(LFLAGS) -o sfmike
|
|
|
|
|
|
|
|
LWLDOBJS = lwld.o xdsub.o
|
|
|
|
|
|
|
|
***************
|
1997-06-11 19:01:07 +00:00
|
|
|
*** 142,149 ****
|
1996-11-11 23:17:44 +00:00
|
|
|
|
|
|
|
ECHOOBJS = echo.o codecs.o g711.o rtpacket.o ulaw.o xdsub.o
|
|
|
|
|
|
|
|
! sfecho: $(ECHOOBJS) md5lib.o
|
|
|
|
! $(CC) $(ECHOOBJS) md5/md5.o adpcm/adpcm-u.o lpc/lpc.o $(LFLAGS) -o sfecho
|
|
|
|
|
|
|
|
sfvod: sfvod.pl
|
|
|
|
echo \#\! $(PERL) >sfvod
|
1997-06-11 19:01:07 +00:00
|
|
|
--- 152,159 ----
|
1996-11-11 23:17:44 +00:00
|
|
|
|
|
|
|
ECHOOBJS = echo.o codecs.o g711.o rtpacket.o ulaw.o xdsub.o
|
|
|
|
|
|
|
|
! sfecho: $(ECHOOBJS)
|
|
|
|
! $(CC) $(ECHOOBJS) adpcm/adpcm-u.o lpc/lpc.o -lmd $(LFLAGS) -o sfecho
|
|
|
|
|
|
|
|
sfvod: sfvod.pl
|
|
|
|
echo \#\! $(PERL) >sfvod
|
|
|
|
***************
|
1997-06-11 19:01:07 +00:00
|
|
|
*** 159,169 ****
|
1996-11-11 23:17:44 +00:00
|
|
|
chmod 755 sfvod
|
|
|
|
|
|
|
|
adpcmlib.o:
|
|
|
|
! ( echo "Building ADPCM library."; cd adpcm ; make CC="$(CC)" )
|
|
|
|
echo "ADPCM" >adpcmlib.o
|
|
|
|
|
|
|
|
libdes.o:
|
|
|
|
( echo "Building LIBDES library."; cd libdes ; make -f Makefile.sf CC="$(CC) $(CCFLAGS) $(DEBUG)" )
|
|
|
|
echo "LIBDES" >libdes.o
|
|
|
|
|
|
|
|
lpclib.o:
|
1997-06-11 19:01:07 +00:00
|
|
|
--- 169,181 ----
|
1996-11-11 23:17:44 +00:00
|
|
|
chmod 755 sfvod
|
|
|
|
|
|
|
|
adpcmlib.o:
|
|
|
|
! ( echo "Building ADPCM library."; cd adpcm ; make CC="$(CC) $(CCFLAGS)" )
|
|
|
|
echo "ADPCM" >adpcmlib.o
|
|
|
|
|
|
|
|
libdes.o:
|
|
|
|
+ .if !exists(/usr/lib/libdes.a)
|
|
|
|
( echo "Building LIBDES library."; cd libdes ; make -f Makefile.sf CC="$(CC) $(CCFLAGS) $(DEBUG)" )
|
|
|
|
+ .endif
|
|
|
|
echo "LIBDES" >libdes.o
|
|
|
|
|
|
|
|
lpclib.o:
|
|
|
|
***************
|
1997-06-11 19:01:07 +00:00
|
|
|
*** 175,181 ****
|
1996-11-11 23:17:44 +00:00
|
|
|
echo "LPC" >lpc10lib.o
|
|
|
|
|
|
|
|
gsmlib.o:
|
|
|
|
! ( echo "Building GSM library."; cd gsm ; make CC="$(CC)" )
|
|
|
|
echo "GSM" >gsmlib.o
|
|
|
|
|
|
|
|
deslib.o:
|
1997-06-11 19:01:07 +00:00
|
|
|
--- 187,193 ----
|
1996-11-11 23:17:44 +00:00
|
|
|
echo "LPC" >lpc10lib.o
|
|
|
|
|
|
|
|
gsmlib.o:
|
|
|
|
! ( echo "Building GSM library."; cd gsm ; make CC="$(CC) $(CCFLAGS)" )
|
|
|
|
echo "GSM" >gsmlib.o
|
|
|
|
|
|
|
|
deslib.o:
|
|
|
|
***************
|
1997-06-11 19:01:07 +00:00
|
|
|
*** 183,193 ****
|
1996-11-11 23:17:44 +00:00
|
|
|
echo "DES" >deslib.o
|
|
|
|
|
|
|
|
md5lib.o:
|
|
|
|
! ( echo "Building MD5 library."; cd md5 ; make CC="$(CC)" )
|
|
|
|
echo "MD5" >md5lib.o
|
|
|
|
|
|
|
|
idealib.o:
|
|
|
|
! ( echo "Building IDEA library."; cd idea ; make CC="$(CC)" )
|
|
|
|
echo "IDEA" >idealib.o
|
|
|
|
|
|
|
|
codecs.o: codecs.c speakfree.h
|
1997-06-11 19:01:07 +00:00
|
|
|
--- 195,205 ----
|
1996-11-11 23:17:44 +00:00
|
|
|
echo "DES" >deslib.o
|
|
|
|
|
|
|
|
md5lib.o:
|
|
|
|
! ( echo "Building MD5 library."; cd md5 ; make CC="$(CC) $(CCFLAGS)" )
|
|
|
|
echo "MD5" >md5lib.o
|
|
|
|
|
|
|
|
idealib.o:
|
|
|
|
! ( echo "Building IDEA library."; cd idea ; make CC="$(CC) $(CCFLAGS)" )
|
|
|
|
echo "IDEA" >idealib.o
|
|
|
|
|
|
|
|
codecs.o: codecs.c speakfree.h
|