23 lines
579 B
Makefile
23 lines
579 B
Makefile
|
VALID_TOOLCHAINS := pnacl
|
||
|
|
||
|
include $(NACL_SDK_ROOT)/tools/common.mk
|
||
|
|
||
|
TARGET = curve25519
|
||
|
LIBS = ppapi_cpp ppapi
|
||
|
|
||
|
CFLAGS = -Wall
|
||
|
SOURCES = curve25519-donna.c curve25519-donna-wrapper.cpp
|
||
|
|
||
|
# 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),))
|