1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00
trezor-firmware/legacy/Makefile
2022-05-03 19:00:04 +02:00

50 lines
1008 B
Makefile

ifneq ($(EMULATOR),1)
OBJS += setup.o
OBJS += startup.o
OBJS += timer.o
endif
OBJS += buttons.o
OBJS += common.o
OBJS += flash.o
OBJS += fw_signatures.o
OBJS += gen/bitmaps.o
OBJS += gen/fonts.o
OBJS += layout.o
OBJS += memory.o
OBJS += oled.o
OBJS += random_delays.o
OBJS += rng.o
OBJS += supervise.o
OBJS += usb21_standard.o
OBJS += usb_standard.o
OBJS += util.o
OBJS += webusb.o
OBJS += winusb.o
libtrezor.a: $(OBJS)
include Makefile.include
libtrezor.a:
@printf " AR $@\n"
$(Q)$(AR) rcs $@ $^
.PHONY: vendor build_unix test_emu test_emu_ui test_emu_ui_record
vendor:
git submodule update --init --recursive
build_unix: ## build unix port
./script/setup
EMULATOR=1 DEBUG_LINK=1 ./script/cibuild
test_emu: ## run integration tests
./script/test $(TESTOPTS)
test_emu_ui: ## run ui integration tests
./script/test --ui=test --ui-check-missing $(TESTOPTS)
test_emu_ui_record: ## record and hash screens for ui integration tests
./script/test --ui=record --ui-check-missing $(TESTOPTS)