61 lines
1.7 KiB
Makefile
61 lines
1.7 KiB
Makefile
|
#----------------------------------------------------------------
|
||
|
#
|
||
|
# 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".
|
||
|
#
|
||
|
#----------------------------------------------------------------
|
||
|
|
||
|
VERSION=0.0036
|
||
|
|
||
|
TEKFLAG= -DDEBUG_LEVEL=1 -g
|
||
|
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
|
||
|
|
||
|
#---------------------------------------------------------
|