2014-01-22 07:23:41 +01:00
|
|
|
VALID_TOOLCHAINS := pnacl
|
|
|
|
|
|
|
|
include $(NACL_SDK_ROOT)/tools/common.mk
|
|
|
|
|
|
|
|
TARGET = curve25519
|
|
|
|
LIBS = ppapi_cpp ppapi
|
|
|
|
|
2014-07-20 10:54:00 +02:00
|
|
|
CFLAGS = -Wall -Werror -Ied25519/nacl_includes -Ied25519 -Ied25519/sha512
|
2014-07-20 03:41:42 +02:00
|
|
|
SOURCES = curve25519-donna.c curve25519-donna-wrapper.cpp $(wildcard ed25519/*.c) $(wildcard ed25519/additions/*.c) ed25519/sha512/sha2big.c
|
2014-01-22 07:23:41 +01:00
|
|
|
|
|
|
|
# Build rules generated by macros from common.mk:
|
|
|
|
|
|
|
|
$(foreach src,$(SOURCES),$(eval $(call COMPILE_RULE,$(src),$(CFLAGS))))
|
|
|
|
|
|
|
|
ifeq ($(CONFIG),Release)
|
|
|
|
$(eval $(call LINK_RULE,$(TARGET)_unstripped,$(SOURCES),$(LIBS),$(DEPS)))
|
|
|
|
$(eval $(call STRIP_RULE,$(TARGET),$(TARGET)_unstripped))
|
|
|
|
else
|
|
|
|
$(eval $(call LINK_RULE,$(TARGET),$(SOURCES),$(LIBS),$(DEPS)))
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(call NMF_RULE,$(TARGET),))
|