22 lines
721 B
Makefile
22 lines
721 B
Makefile
VALID_TOOLCHAINS := pnacl
|
|
|
|
include $(NACL_SDK_ROOT)/tools/common.mk
|
|
|
|
TARGET = curve25519
|
|
LIBS = ppapi_cpp ppapi
|
|
|
|
CFLAGS = -Wall -Werror -Ied25519/nacl_includes -Ied25519 -Ied25519/sha512
|
|
SOURCES = curve25519-donna.c curve25519-donna-wrapper.cpp $(wildcard ed25519/*.c) $(wildcard ed25519/additions/*.c) ed25519/sha512/sha2big.c
|
|
|
|
# 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),))
|