Makefile (a4fdd9bcd3953fe9afbc4d85e54142bde7bcf9ea) Makefile (a3e078e579352f4992bbd657a25004d4408fc116)
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.

--- 5 unchanged lines hidden (view full) ---

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
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.

--- 5 unchanged lines hidden (view full) ---

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_packet.c
22SOURCE_FILES = test_syndromes.c
23LIBRARY_SOURCE = ../bluetooth_packet.c
23LIBRARY_SOURCE = ../bluetooth_packet.c
24BINARY_FILES = test_packet
24BINARY_FILES = test_syndromes
25HEADER_FILES = ../bluetooth_packet.h
26
25HEADER_FILES = ../bluetooth_packet.h
26
27CFLAGS += -DHASH_FUNCTION=HASH_FNV -DHASH_EMIT_KEYS=3
28
27all: test_packet
28
29test_packet:
30 $(CC) $(CFLAGS) $(CPPFLAGS) -O2 -Wall $(LIBRARY_SOURCE) $(SOURCE_FILES) -o $(BINARY_FILES)
31
32clean:
33 rm -f $(BINARY_FILES)
34
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