prepare libamiibo.a inclusion

This commit is contained in:
Philippe Teuwen
2019-09-03 00:18:29 +02:00
parent f7f80a9b9f
commit bccb9069f9
7 changed files with 42 additions and 11 deletions

19
client/amiitool/Makefile Normal file
View File

@@ -0,0 +1,19 @@
MYSRCPATHS =
MYINCLUDES = -I. -I.. -I../jansson -I../../common/ -I../../include/
MYCFLAGS = -std=c99 -D_ISOC99_SOURCE
MYDEFS =
MYSRCS = \
amiibo.c \
drbg.c \
keygen.c
LIB_A = libamiibo.a
include ../../Makefile.host
# just for testing amiitool before complete migration into a lib:
amiitool:
gcc $(CFLAGS) \
amiitool.c $(MYSRCS) ../../common/commonutil.c ../ui.c -lreadline -lm ../../common/mbedtls/libmbedtls.a \
-o amiitool