hardened_malloc/test/Makefile

31 lines
642 B
Makefile
Raw Normal View History

2018-11-16 20:25:35 +00:00
CONFIG_SLAB_CANARY := true
CONFIG_EXTENDED_SIZE_CLASSES := true
2018-11-16 20:25:35 +00:00
2022-01-09 16:08:56 +00:00
ifneq ($(VARIANT),)
$(error testing non-default variants not yet supported)
endif
2018-11-16 20:25:35 +00:00
ifeq (,$(filter $(CONFIG_SLAB_CANARY),true false))
$(error CONFIG_SLAB_CANARY must be true or false)
endif
2019-04-30 20:54:58 +00:00
LDLIBS := -lpthread
2018-11-16 20:25:35 +00:00
CPPFLAGS += \
-DSLAB_CANARY=$(CONFIG_SLAB_CANARY) \
-DCONFIG_EXTENDED_SIZE_CLASSES=$(CONFIG_EXTENDED_SIZE_CLASSES)
2018-11-16 20:25:35 +00:00
2018-10-04 06:40:51 +00:00
EXECUTABLES := \
offset \
2019-04-30 20:47:06 +00:00
mallinfo \
2021-05-13 00:07:15 +00:00
mallinfo2 \
2019-04-30 20:54:58 +00:00
malloc_info \
2019-04-30 20:47:06 +00:00
large_array_growth
2018-10-04 06:40:51 +00:00
all: $(EXECUTABLES)
$(MAKE) -C simple-memory-corruption
2018-10-04 06:40:51 +00:00
clean:
rm -f $(EXECUTABLES)
$(MAKE) -C simple-memory-corruption clean