mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
8f1d33d5f9
for firmware builds we still use arm-none-eabi-gcc via $(PREFIX)gcc [no changelog]
15 lines
222 B
Makefile
15 lines
222 B
Makefile
CC=cc
|
|
CFLAGS=-Wall -fPIC
|
|
LIBS=
|
|
OBJ=storage.o norcow.o flash.o
|
|
OUT=libtrezor-storage0.so
|
|
|
|
$(OUT): $(OBJ)
|
|
$(CC) $(CFLAGS) $(LIBS) $(OBJ) -shared -o $(OUT)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
clean:
|
|
rm -f $(OUT) $(OBJ)
|