forked from trezor/trezor-mcu
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (34 loc) · 715 Bytes
/
Makefile
File metadata and controls
41 lines (34 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
ifndef DEVICE_MODEL
$(error DEVICE_MODEL is undefined)
endif
ifneq ($(DEVICE_MODEL), BITHD_BITHD)
ifneq ($(DEVICE_MODEL), BITHD_RAZOR)
$(error invalid DEVICE_MODEL=$(DEVICE_MODEL) defined)
endif
endif
CFLAGS += -D${DEVICE_MODEL}=1
ifdef BOOTLOADER
CFLAGS += -DBOOTLOADER
$(info "building for bootloader")
endif
OBJS += startup.o
OBJS += buttons.o
OBJS += layout.o
OBJS += oled.o
OBJS += rng.o
OBJS += serialno.o
OBJS += setup.o
OBJS += util.o
OBJS += memory.o
OBJS += timer.o
OBJS += gen/bitmaps.o
OBJS += gen/fonts.o
OBJS += timerbitpie.o
OBJS += uart.o
OBJS += gen/chinese.o
libtrezor.a: $(OBJS)
$(AR) rcs libtrezor.a $(OBJS)
include Makefile.include
.PHONY: vendor
vendor:
git submodule update --init