Makefile
author František Kučera <franta-hg@frantovo.cz>
Fri, 18 Dec 2020 23:58:03 +0100
branchv_0
changeset 4 4d777d6c8024
parent 3 e238528eb19c
child 12 15d87fdd6e6c
permissions -rw-r--r--
address sanitizer
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
# DJM-Fix
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
# Copyright © 2020 František Kučera (Frantovo.cz, GlobalCode.info)
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
#
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
# This program is free software: you can redistribute it and/or modify
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
# it under the terms of the GNU General Public License as published by
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
# the Free Software Foundation, version 3 of the License.
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
#
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
# This program is distributed in the hope that it will be useful,
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
# GNU General Public License for more details.
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
#
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
# You should have received a copy of the GNU General Public License
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
# along with this program. If not, see <http://www.gnu.org/licenses/>.
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
4
4d777d6c8024 address sanitizer
František Kučera <franta-hg@frantovo.cz>
parents: 3
diff changeset
    16
CXXFLAGS=-fno-omit-frame-pointer -fsanitize=address -g -lpthread $$(pkg-config --libs --cflags alsa)
4d777d6c8024 address sanitizer
František Kučera <franta-hg@frantovo.cz>
parents: 3
diff changeset
    17
0
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
all: build/djm-fix
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
clean:
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
	rm -rf build
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
1
98274757fcf6 more bones
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    23
run: build/djm-fix
98274757fcf6 more bones
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    24
	build/djm-fix
98274757fcf6 more bones
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    25
98274757fcf6 more bones
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    26
.PHONY: all clean run
0
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
2
f34476ab597f background thread + AlsaBridge skeleton
František Kučera <franta-hg@frantovo.cz>
parents: 1
diff changeset
    28
build/djm-fix: DJMFix.cpp DJMFix.h AlsaBridge.cpp AlsaBridge.h djm-fix.cpp
0
4ee5349be21d project skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
	mkdir -p build
4
4d777d6c8024 address sanitizer
František Kučera <franta-hg@frantovo.cz>
parents: 3
diff changeset
    30
	g++ -o $@ DJMFix.cpp AlsaBridge.cpp djm-fix.cpp $(CXXFLAGS)