aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-12 23:09:43 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-12 23:09:43 +0000
commit11de1f857ce719a9daca77f59382f4e65fee5546 (patch)
treeb67600894a045e2f9819f0646a81d0ae7ad7552d /Makefile
parent78b27c6c0394d84e71c5ecc22f3c6fec9d731694 (diff)
sync with HEAD
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 18 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 2034dab..ace154b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,27 @@
# $Id$
-VERSION=2.0
+VERSION=3.0
PROG= spectrogram
-SRCS= spectrogram.c sio.c fft.c cms.c Spectrogram.c
-BINDIR= /usr/local/bin
-HEADERS=sio.h fft.h cms.h Spectrogram.h SpectrogramP.h
+
+SRCS= spectrogram.c fft.c cms.c aux.c widget.c Spectrogram.c
LIBS= fftw3 x11 xaw7
+BINDIR= /usr/local/bin
+
+UNAME!= uname
+.ifdef ${UNAME} == Linux
+SRCS+= alsa.c
+LIBS+= alsa
+.else
+SRCS+= sio.c
+LDADD+= -lsndio
+.endif
+
PCCF!= pkg-config --cflags ${LIBS}
-PCLA!= pkg-config --libs ${LIBS}
CFLAGS+=${PCCF}
-LDADD+= ${PCLA} -lsndio
+
+PCLA!= pkg-config --libs ${LIBS}
+LDADD+= ${PCLA}
+
DEBUG+= -Wall
NOMAN=
DIR= ${PROG}-${VERSION}