1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 03:48:09 +00:00

Merge pull request #8 from dllaurence/linux-build

Linux build
This commit is contained in:
Pavol Rusnak 2014-07-06 22:35:33 +02:00
commit aa27534856

View File

@ -8,16 +8,19 @@ OBJS += ripemd160.o
OBJS += sha2.o
OBJS += aescrypt.o aeskey.o aestab.o aes_modes.o
TESTLIBS = -lcheck -lrt -lpthread -lm
TESTSSLLIBS = -lcrypto
all: tests test-openssl
%.o: %.c %.h
$(CC) $(CFLAGS) -o $@ -c $<
tests: tests.o $(OBJS)
gcc tests.o $(OBJS) -lcheck -o tests
gcc tests.o $(OBJS) $(TESTLIBS) -o tests
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:
rm -f *.o tests test-openssl