xref: /libbtbb/tests/Makefile (revision 75a5697357715b049f5a196ae8efce22ab33da89)
1a4fdd9bcSDominic# Copyright 2011 Michael Ossmann, Dominic Spill
2a4fdd9bcSDominic#
3a4fdd9bcSDominic# This file is part of Project Ubertooth.
4a4fdd9bcSDominic#
5a4fdd9bcSDominic# This program is free software; you can redistribute it and/or modify
6a4fdd9bcSDominic# it under the terms of the GNU General Public License as published by
7a4fdd9bcSDominic# the Free Software Foundation; either version 2, or (at your option)
8a4fdd9bcSDominic# any later version.
9a4fdd9bcSDominic#
10a4fdd9bcSDominic# This program is distributed in the hope that it will be useful,
11a4fdd9bcSDominic# but WITHOUT ANY WARRANTY; without even the implied warranty of
12a4fdd9bcSDominic# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13a4fdd9bcSDominic# GNU General Public License for more details.
14a4fdd9bcSDominic#
15a4fdd9bcSDominic# You should have received a copy of the GNU General Public License
16a4fdd9bcSDominic# along with this program; see the file COPYING.  If not, write to
17a4fdd9bcSDominic# the Free Software Foundation, Inc., 51 Franklin Street,
18a4fdd9bcSDominic# Boston, MA 02110-1301, USA.
19a4fdd9bcSDominic
20*75a56973SDominic SpillCC ?= gcc
21a4fdd9bcSDominic
22a3e078e5SDominicSOURCE_FILES = test_syndromes.c
23a4fdd9bcSDominicLIBRARY_SOURCE = ../bluetooth_packet.c
24a3e078e5SDominicBINARY_FILES = test_syndromes
25a4fdd9bcSDominicHEADER_FILES = ../bluetooth_packet.h
26a4fdd9bcSDominic
27a3e078e5SDominicCFLAGS += -DHASH_FUNCTION=HASH_FNV -DHASH_EMIT_KEYS=3
28a3e078e5SDominic
29a4fdd9bcSDominicall: test_packet
30a4fdd9bcSDominic
31a4fdd9bcSDominictest_packet:
32a4fdd9bcSDominic	$(CC) $(CFLAGS) $(CPPFLAGS) -O2 -Wall $(LIBRARY_SOURCE) $(SOURCE_FILES) -o $(BINARY_FILES)
33a4fdd9bcSDominic
34a4fdd9bcSDominicclean:
35a4fdd9bcSDominic	rm -f $(BINARY_FILES)
36a4fdd9bcSDominic
37