2023-11-30 07:28:26 +11:00
|
|
|
#----------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# abominable sound console player
|
|
|
|
# by Thierry 'tth' Boudet - build on Slackware.
|
|
|
|
#
|
|
|
|
# Recent versions: http://tontonth.free.fr/
|
|
|
|
# complains go to "tontonth O free o fr".
|
|
|
|
#
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2023-11-30 12:49:33 +11:00
|
|
|
VERSION=0.0037
|
2023-11-30 07:28:26 +11:00
|
|
|
|
2023-11-30 08:00:54 +11:00
|
|
|
TEKFLAG= -DDEBUG_LEVEL=0 -g
|
2023-11-30 07:28:26 +11:00
|
|
|
CFLAGS=-Wall -Wextra -ansi $(TEKFLAG) -DVERSION=\"$(VERSION)\"
|
|
|
|
BIBS=-lncurses -lao -lsndfile -logg
|
|
|
|
|
|
|
|
#---------------------------------------------------------
|
|
|
|
|
|
|
|
all: ecoute
|
|
|
|
|
|
|
|
#---------------------------------------------------------
|
|
|
|
|
|
|
|
main.o: main.c ecoute.h Makefile
|
|
|
|
ecran.o: ecran.c ecoute.h Makefile
|
|
|
|
dump.o: dump.c ecoute.h Makefile
|
|
|
|
magic.o: magic.c ecoute.h Makefile
|
|
|
|
interactive.o: interactive.c ecoute.h Makefile
|
|
|
|
fonctions.o: fonctions.c ecoute.h Makefile
|
|
|
|
ifao.o: ifao.c ecoute.h Makefile
|
|
|
|
playwav.o: playwav.c ecoute.h Makefile
|
|
|
|
playnote.o: playnote.c ecoute.h Makefile
|
|
|
|
playau.o: playau.c ecoute.h Makefile
|
|
|
|
playogg.o: playogg.c ecoute.h Makefile
|
|
|
|
playspeex.o: playspeex.c ecoute.h Makefile
|
|
|
|
playflac.o: playflac.c ecoute.h Makefile
|
|
|
|
|
|
|
|
OBJ=main.o ecran.o playnote.o playwav.o playogg.o fonctions.o interactive.o \
|
|
|
|
dump.o playau.o playspeex.o playflac.o magic.o ifao.o
|
|
|
|
|
|
|
|
ecoute: $(OBJ)
|
|
|
|
gcc $(TEKFLAG) $(OBJ) $(BIBS) -o ecoute
|
|
|
|
|
|
|
|
#---------------------------------------------------------
|
|
|
|
# services targets
|
|
|
|
|
|
|
|
FILES=*.c *.h *.txt Makefile *.man *.html
|
|
|
|
|
|
|
|
install: ecoute
|
|
|
|
cp ./ecoute /usr/local/bin
|
|
|
|
|
|
|
|
lines:
|
|
|
|
wc $(FILES) | sort -n
|
|
|
|
|
|
|
|
tarball: $(FILES)
|
|
|
|
ls $^ > MANIFEST ; \
|
|
|
|
( cd .. ; \
|
|
|
|
tar zcvf ecoute-$(VERSION).tar.gz `sed 's/^/Ecoute\//' Ecoute/MANIFEST` )
|
|
|
|
date >> tarball
|
|
|
|
|
|
|
|
#---------------------------------------------------------
|