forked from karlstav/cava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
60 lines (45 loc) · 1.25 KB
/
Makefile.am
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
51
52
53
54
55
56
57
58
AUTOMAKE_OPTIONS = foreign
if !SYSTEM_LIBINIPARSER
SUBDIRS = iniparser
endif
ACLOCAL_AMFLAGS = -I m4
M_CPPFLAGS = -DSYSTEM_LIBINIPARSER=@SYSTEM_LIBINIPARSER@
bin_PROGRAMS = cava
cava_SOURCES = cava.c config.c input/common.c input/fifo.c input/shmem.c \
output/terminal_noncurses.c output/raw.c
cava_CPPFLAGS = -DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(VERSION)\" \
-D_POSIX_SOURCE -D _POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE_EXTENDED \
-DFONTDIR=\"@FONT_DIR@\"
cava_CFLAGS = -std=c99 -Wall -Werror -Wextra -Wno-unused-result -Wno-unknown-warning-option -Wno-maybe-uninitialized -Wno-vla-parameter
if OSX
cava_CFLAGS += -DNORT
cava_LDADD =
else
cava_LDADD = -lrt
cava_font_dir = @FONT_DIR@
cava_font__DATA = cava.psf
endif
if ALSA
cava_SOURCES += input/alsa.c
endif
if PORTAUDIO
cava_SOURCES += input/portaudio.c
endif
if PULSE
cava_SOURCES += input/pulse.c
endif
if SNDIO
cava_SOURCES += input/sndio.c
endif
if NCURSES
cava_SOURCES += output/terminal_ncurses.c
endif
if SDL
cava_SOURCES += output/sdl_cava.c
endif
if !SYSTEM_LIBINIPARSER
cava_LDADD += -liniparser
cava_SOURCES += iniparser/libiniparser.la
cava_LDADD += -Liniparser/.libs
cava_CPPFLAGS += -Iiniparser/src
endif