1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
BINDIR=$(DESTDIR)/usr/bin
export CC := $(shell wx-config --cxx)
#
# Set the version of FFTW that you have, here.
#
export FFT_VERS := 3
# export FFT_VERS := 2
ifeq ($(FFT_VERS),3)
FFT_CFLAGS := -DHAVE_FFTW3=1
FFT_LIB := -lfftw3
endif
ifeq ($(FFT_VERS),2)
FFT_CFLAGS := -DHAVE_FFTW2=1
FFT_LIB := -lfftw
endif
export LDFLAGS := $(shell wx-config --ldflags)
export LIBS := -lsndfile $(FFT_LIB) $(shell wx-config --libs)
export CFLAGS := -O2 -g -Wall -I.. $(FFT_CFLAGS) $(shell wx-config --cxxflags) -fexceptions
all: fsk441/FSK441 jt44/JT44
fsk441/FSK441: common/common.a
make -C fsk441
jt44/JT44: common/common.a
make -C jt44
jt6m/JT6M: common/common.a
make -C jt6m
common/common.a:
make -C common
install: fsk441/FSK441 jt44/JT44
install -s fsk441/FSK441 $(BINDIR)
install -s jt44/JT44 $(BINDIR)
clean:
rm -f core *~ *.bak
make -C common clean
make -C fsk441 clean
make -C jt44 clean
make -C jt6m clean
|