Skip to content

Commit 1c1469b

Browse files
Autotools in the "test" branch
1 parent 6b6c6e9 commit 1c1469b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1748
-18
lines changed

.gitignore

+44
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,47 @@
22
!.gitignore
33
!.travis.yml
44
!.valgrind.supp
5+
6+
# Object files
7+
*.o
8+
*.ko
9+
*.obj
10+
*.elf
11+
build
12+
tg-timer.res
13+
14+
# Executables
15+
*.exe
16+
*.out
17+
*.app
18+
*.i*86
19+
*.x86_64
20+
*.hex
21+
tg-timer
22+
tg-timer-dbg
23+
tg-timer-prf
24+
tg-timer-vlg
25+
26+
# autotools
27+
Makefile
28+
Makefile.in
29+
/autom4te.cache
30+
/aclocal.m4
31+
/compile
32+
/configure
33+
/depcomp
34+
/install-sh
35+
/missing
36+
/stamp-h1
37+
/config.*
38+
/libtool
39+
/ltmain.sh
40+
/test-driver
41+
/test-suite.log
42+
.libs
43+
.deps
44+
.dirstamp
45+
*.log
46+
*.trs
47+
*.tar.gz
48+

.travis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ before_script:
3838
fi;
3939
if [[ "$TARGET" == "test" ]]; then
4040
mkdir -p ~/.config;
41-
fi
41+
fi;
4242

4343
script:
44-
make "$TARGET"
44+
./autogen.sh;
45+
./configure;
46+
make "$TARGET";

Makefile.am

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
SUBDIRS = icons
2+
bin_PROGRAMS = tg-timer
3+
EXTRA_PROGRAMS = tg-timer-dbg \
4+
tg-timer-prf \
5+
tg-timer-vlg
6+
MOSTLYCLEANFILES := $(EXTRA_PROGRAMS)
7+
8+
tg_timer_SOURCES = src/algo.c \
9+
src/audio.c \
10+
src/computer.c \
11+
src/config.c \
12+
src/interface.c \
13+
src/output_panel.c \
14+
src/serializer.c \
15+
src/tg.h
16+
if HAVE_WINDRES
17+
tg_timer_SOURCES += tg-timer.res
18+
endif
19+
20+
tg_timer_dbg_SOURCES = $(tg_timer_SOURCES)
21+
tg_timer_prf_SOURCES = $(tg_timer_SOURCES)
22+
tg_timer_vlg_SOURCES = $(tg_timer_SOURCES)
23+
24+
LIBS = $(GTK_LIBS) \
25+
$(GTHREAD_LIBS) \
26+
$(PORTAUDIO_LIBS) \
27+
$(FFTW_LIBS) \
28+
-lpthread \
29+
-lm
30+
31+
AM_CPPFLAGS = -DPROGRAM_NAME=\"tg-timer\" -DVERSION=\"$(PACKAGE_VERSION)\"
32+
tg_timer_dbg_CPPFLAGS = $(AM_CPPFLAGS) -DDEBUG
33+
34+
AM_CFLAGS = $(GTK_CFLAGS) \
35+
$(GTHREAD_CFLAGS) \
36+
$(PORTAUDIO_CFLAGS) \
37+
$(FFTW_CFLAGS)
38+
tg_timer_dbg_CFLAGS = $(AM_CFLAGS) -ggdb
39+
tg_timer_prf_CFLAGS = $(AM_CFLAGS) -pg
40+
tg_timer_vlg_CFLAGS = $(AM_CFLAGS) -g
41+
42+
desktopdir = $(datadir)/applications
43+
desktop_DATA = icons/tg-timer.desktop
44+
45+
dist_man_MANS = docs/tg-timer.1
46+
47+
xdgdatadir = @XDGDATADIR@
48+
mimedir = $(xdgdatadir)/mime
49+
xmldir = $(mimedir)/packages
50+
xml_DATA = icons/tg-timer.xml
51+
52+
EXTRA_DIST := autogen.sh \
53+
icons \
54+
packaging
55+
56+
test: tg-timer-dbg
57+
./tg-timer-dbg test
58+
.PHONY: test
59+
60+
tg-timer.res: icons/tg-timer.rc icons/tg-timer.ico
61+
windres icons/tg-timer.rc -O coff -o $@
62+
63+
valgrind: tg-timer-vlg
64+
valgrind --leak-check=full -v --num-callers=99 --suppressions=.valgrind.supp ./$^
65+
.PHONY: valgrind
66+

Makefile Makefile.old

File renamed without changes.

README.md

+14-6
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,20 @@ The source code of tg can probably be built by any C99 compiler, however
4949
only gcc and clang have been tested. You need the following libraries:
5050
gtk+3, portaudio2, fftw3 (all available as open-source).
5151

52+
Release build:
53+
```sh
54+
git clone https://github.com/vacaboja/tg.git
55+
cd tg
56+
./autogen.sh
57+
./configure
58+
make
59+
```
60+
61+
Debug build:
62+
```sh
63+
make tg-timer-dbg
64+
```
65+
5266
### Compiling on Windows
5367

5468
It is suggested to use the msys2 platform. First install msys2 according
@@ -65,9 +79,6 @@ issue the following commands.
6579
To compile tg on Debian
6680

6781
sudo apt-get install libgtk-3-dev libjack-jackd2-dev portaudio19-dev libfftw3-dev git
68-
git clone https://github.com/vacaboja/tg.git
69-
cd tg
70-
make
7182

7283
The package libjack-jackd2-dev is not necessary, it only works around a
7384
known bug (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718221).
@@ -77,6 +88,3 @@ known bug (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718221).
7788
To compile tg on Fedora
7889

7990
sudo dnf install fftw-devel portaudio-devel gtk3-devel
80-
git clone https://github.com/vacaboja/tg.git
81-
cd tg
82-
make

0 commit comments

Comments
 (0)