2020-04-16 16:57:53 +08:00
|
|
|
# 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
|
|
|
|
|
2020-05-06 20:45:02 +08:00
|
|
|
add_library(pm3rrg_rdv4_amiibo STATIC
|
2020-04-18 17:39:15 +08:00
|
|
|
amiitool/amiibo.c
|
|
|
|
amiitool/drbg.c
|
|
|
|
amiitool/keygen.c
|
2020-04-16 16:57:53 +08:00
|
|
|
)
|
2020-04-18 17:39:15 +08:00
|
|
|
|
2020-05-25 05:23:55 +08:00
|
|
|
if (NOT TARGET pm3rrg_rdv4_mbedtls)
|
|
|
|
include(mbedtls.cmake)
|
|
|
|
endif()
|
|
|
|
find_library(pm3rrg_rdv4_mbedtls REQUIRED)
|
|
|
|
target_link_libraries(pm3rrg_rdv4_amiibo PRIVATE
|
|
|
|
readline
|
|
|
|
m
|
|
|
|
pm3rrg_rdv4_mbedtls)
|
2020-05-06 20:45:02 +08:00
|
|
|
target_include_directories(pm3rrg_rdv4_amiibo PRIVATE ../../include ../../common)
|
|
|
|
target_include_directories(pm3rrg_rdv4_amiibo INTERFACE amiitool)
|
2020-05-22 03:55:15 +08:00
|
|
|
target_compile_options(pm3rrg_rdv4_amiibo PRIVATE -Wall -Werror -O3)
|
2020-05-06 20:45:02 +08:00
|
|
|
set_property(TARGET pm3rrg_rdv4_amiibo PROPERTY POSITION_INDEPENDENT_CODE ON)
|