1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00
trezor-firmware/tests/fido_tests/u2f-tests-hid/Makefile
Pavol Rusnak 8f1d33d5f9 build(core,legacy): remove gcc, use cc instead of gcc
for firmware builds we still use arm-none-eabi-gcc via $(PREFIX)gcc

[no changelog]
2022-04-27 15:48:14 +02:00

27 lines
582 B
Makefile

# Copyright 2014 Google Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
all: HIDTest U2FTest
CC ?= cc
CXX ?= c++
CFLAGS ?= -Wall
%.o: %.c
$(CC) -c $(CFLAGS) $^
%.o: %.cc
$(CXX) -c $(CFLAGS) $^
HIDTest: dev.o HIDTest.cc u2f_util.o hidapi-udp.o
$(CXX) $(CFLAGS) -o $@ $^
U2FTest: dev.o U2FTest.o u2f_util.o dsa_sig.o hidapi-udp.o p256.o p256_ec.o p256_ecdsa.o sha256.o
$(CXX) $(CFLAGS) -o $@ $^
clean:
rm -f *.o HIDTest U2FTest