mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-11 07:50:57 +00:00
Add required libraries to build on Linux
This commit is contained in:
parent
82ed3f31db
commit
70da2c6be3
7
Makefile
7
Makefile
@ -8,16 +8,19 @@ OBJS += ripemd160.o
|
|||||||
OBJS += sha2.o
|
OBJS += sha2.o
|
||||||
OBJS += aescrypt.o aeskey.o aestab.o aes_modes.o
|
OBJS += aescrypt.o aeskey.o aestab.o aes_modes.o
|
||||||
|
|
||||||
|
TESTLIBS = -lcheck -lrt -lpthread -lm
|
||||||
|
TESTSSLLIBS = -lcrypto
|
||||||
|
|
||||||
all: tests test-openssl
|
all: tests test-openssl
|
||||||
|
|
||||||
%.o: %.c %.h
|
%.o: %.c %.h
|
||||||
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
tests: tests.o $(OBJS)
|
tests: tests.o $(OBJS)
|
||||||
gcc tests.o $(OBJS) -lcheck -o tests
|
gcc tests.o $(OBJS) $(TESTLIBS) -o tests
|
||||||
|
|
||||||
test-openssl: test-openssl.o $(OBJS)
|
test-openssl: test-openssl.o $(OBJS)
|
||||||
gcc test-openssl.o $(OBJS) -o test-openssl -lcrypto
|
gcc test-openssl.o $(OBJS) $(TESTSSLLIBS) -o test-openssl
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o tests test-openssl
|
rm -f *.o tests test-openssl
|
||||||
|
Loading…
Reference in New Issue
Block a user