mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-23 15:08:19 +00:00
emulator: fix Makefile
This commit is contained in:
parent
48998e5e5f
commit
998690fe41
@ -77,6 +77,14 @@ LDFLAGS += -L$(TOP_DIR) \
|
|||||||
ifeq ($(EMULATOR),1)
|
ifeq ($(EMULATOR),1)
|
||||||
CFLAGS += -DEMULATOR=1
|
CFLAGS += -DEMULATOR=1
|
||||||
|
|
||||||
|
CFLAGS += -include $(TOP_DIR)emulator/emulator.h
|
||||||
|
CFLAGS += -include stdio.h
|
||||||
|
|
||||||
|
LDFLAGS += -L$(TOP_DIR)emulator
|
||||||
|
|
||||||
|
LDLIBS += -ltrezor -lemulator
|
||||||
|
LIBDEPS += $(TOP_DIR)/libtrezor.a $(TOP_DIR)emulator/libemulator.a
|
||||||
|
|
||||||
ifeq ($(HEADLESS),1)
|
ifeq ($(HEADLESS),1)
|
||||||
CFLAGS += -DHEADLESS=1
|
CFLAGS += -DHEADLESS=1
|
||||||
else
|
else
|
||||||
@ -86,13 +94,6 @@ CFLAGS += $(shell pkg-config --cflags sdl2)
|
|||||||
LDLIBS += $(shell pkg-config --libs sdl2)
|
LDLIBS += $(shell pkg-config --libs sdl2)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += -include $(TOP_DIR)emulator/emulator.h
|
|
||||||
CFLAGS += -include stdio.h
|
|
||||||
|
|
||||||
LDFLAGS += -L$(TOP_DIR)emulator
|
|
||||||
|
|
||||||
LDLIBS += -ltrezor -lemulator
|
|
||||||
LIBDEPS += $(TOP_DIR)/libtrezor.a $(TOP_DIR)emulator/libemulator.a
|
|
||||||
else
|
else
|
||||||
ifdef APPVER
|
ifdef APPVER
|
||||||
CFLAGS += -DAPPVER=$(APPVER)
|
CFLAGS += -DAPPVER=$(APPVER)
|
||||||
|
Loading…
Reference in New Issue
Block a user