forked from vacaboja/tg
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile.am
78 lines (64 loc) · 1.75 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
SUBDIRS = icons
bin_PROGRAMS = tg-timer
EXTRA_PROGRAMS = tg-timer-dbg \
tg-timer-prf \
tg-timer-vlg
MOSTLYCLEANFILES = $(EXTRA_PROGRAMS)
tg_timer_SOURCES = src/algo.c \
src/audio.c \
src/computer.c \
src/config.c \
src/interface.c \
src/output_panel.c \
src/serializer.c \
src/tg.h
tg_timer_dbg_SOURCES = $(tg_timer_SOURCES)
tg_timer_prf_SOURCES = $(tg_timer_SOURCES)
tg_timer_vlg_SOURCES = $(tg_timer_SOURCES)
LIBS = $(GTK_LIBS) \
$(GTHREAD_LIBS) \
$(PORTAUDIO_LIBS) \
$(FFTW_LIBS) \
-lpthread \
-lm
AM_CPPFLAGS = -DPROGRAM_NAME=\"Tg\" -DVERSION=\"$(PACKAGE_VERSION)\"
tg_timer_dbg_CPPFLAGS = $(AM_CPPFLAGS) -DDEBUG
AM_CFLAGS = $(WARNINGFLAGS) \
$(GTK_CFLAGS) \
$(GTHREAD_CFLAGS) \
$(PORTAUDIO_CFLAGS) \
$(FFTW_CFLAGS)
tg_timer_dbg_CFLAGS = $(AM_CFLAGS) -ggdb
tg_timer_prf_CFLAGS = $(AM_CFLAGS) -pg
tg_timer_vlg_CFLAGS = $(AM_CFLAGS) -g
tg_timer_LDFLAGS = $(AM_LDFLAGS)
tg_timer_dbg_LDFLAGS = $(AM_LDFLAGS)
tg_timer_prf_LDFLAGS = $(AM_LDFLAGS)
tg_timer_vlg_LDFLAGS = $(AM_LDFLAGS)
if BE_WINDOWS
if HAVE_WINDRES
tg_timer_SOURCES += icons/tg-timer.rc
endif
tg_timer_LDFLAGS += -mwindows
tg_timer_dbg_LDFLAGS += -mconsole
tg_timer_prf_LDFLAGS += -mconsole
tg_timer_vlg_LDFLAGS += -mconsole
endif
desktopdir = $(datadir)/applications
dist_desktop_DATA = icons/tg-timer.desktop
mimedir = $(datadir)/mime/packages
dist_mime_DATA = icons/tg-timer.xml
dist_man_MANS = docs/tg-timer.1
EXTRA_DIST = autogen.sh \
icons \
packaging \
LICENSE \
README.md
.rc.o:
$(WINDRES) $< -O coff -o $@
test: tg-timer-dbg
./tg-timer-dbg test
.PHONY: test
valgrind: tg-timer-vlg
valgrind --leak-check=full -v --num-callers=99 --suppressions=.valgrind.supp ./$^
.PHONY: valgrind