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