Fortraneries/SoundBrotching/Makefile
2022-02-07 23:17:22 +01:00

47 lines
1018 B
Makefile

#
# tth@konrad:~/Devel/Fortraneries/SoundBrotching$
#
COPT = -Wall -Wextra -g -DDEBUG_LEVEL=1
all: text2wav wav2text text2ao \
panoramix genwaves
# ----------------------------------------------------------
#
# C tools
#
CLIBS = -lsndfile support.o
support.o: support.c Makefile support.h
gcc $(COPT) -c $<
text2wav: text2wav.c Makefile support.h support.o
gcc $(COPT) $< $(CLIBS) -o $@
wav2text: wav2text.c Makefile support.h support.o
gcc $(COPT) $< $(CLIBS) -o $@
text2ao: text2ao.c Makefile support.h support.o
gcc $(COPT) $< $(CLIBS) -o $@
# ----------------------------------------------------------
#
# real softwares
#
FLIBS = soundbrotch.o
soundbrotch.o: soundbrotch.f90 Makefile
gfortran $(COPT) -c $<
panoramix: panoramix.f90 Makefile $(FLIBS)
gfortran $(COPT) $< $(FLIBS) -o $@
genwaves: genwaves.f90 Makefile $(FLIBS)
gfortran $(COPT) $< $(FLIBS) -o $@
# ----------------------------------------------------------
# ----------------------------------------------------------