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