2017-08-23 22:03:13 +00:00
|
|
|
include $(REP_DIR)/lib/import/import-libpcg_random.mk
|
2022-09-23 13:05:17 +00:00
|
|
|
PCG_SRC_DIR := $(call select_from_ports,pcg-c)/src/lib/pcg-c/src
|
2017-08-23 22:03:13 +00:00
|
|
|
|
|
|
|
CC_OPT += -std=c99
|
|
|
|
|
|
|
|
pcg_srcs = $(notdir $(wildcard $(PCG_SRC_DIR)/*-$(1).c))
|
|
|
|
|
|
|
|
SRC_C += $(call pcg_srcs,8)
|
|
|
|
SRC_C += $(call pcg_srcs,16)
|
|
|
|
SRC_C += $(call pcg_srcs,32)
|
|
|
|
SRC_C += $(call pcg_srcs,64)
|
|
|
|
|
|
|
|
# 128bit state generators only available on 64bit platforms
|
|
|
|
ifeq ($(filter-out $(SPECS),64bit),)
|
|
|
|
SRC_C += $(call pcg_srcs,128)
|
|
|
|
endif
|
|
|
|
|
|
|
|
vpath %.c $(PCG_SRC_DIR)
|
2018-01-03 17:40:54 +00:00
|
|
|
|
|
|
|
CC_CXX_WARN_STRICT =
|