mirror of
				https://github.com/GrapheneOS/hardened_malloc.git
				synced 2025-11-03 17:26:32 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			493 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			493 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
CONFIG_SLAB_CANARY := true
 | 
						|
CONFIG_EXTENDED_SIZE_CLASSES := true
 | 
						|
 | 
						|
ifeq (,$(filter $(CONFIG_SLAB_CANARY),true false))
 | 
						|
    $(error CONFIG_SLAB_CANARY must be true or false)
 | 
						|
endif
 | 
						|
 | 
						|
LDLIBS := -lpthread
 | 
						|
 | 
						|
CPPFLAGS += \
 | 
						|
    -DSLAB_CANARY=$(CONFIG_SLAB_CANARY) \
 | 
						|
    -DCONFIG_EXTENDED_SIZE_CLASSES=$(CONFIG_EXTENDED_SIZE_CLASSES)
 | 
						|
 | 
						|
EXECUTABLES := \
 | 
						|
    offset \
 | 
						|
    mallinfo \
 | 
						|
    malloc_info \
 | 
						|
    large_array_growth
 | 
						|
 | 
						|
all: $(EXECUTABLES)
 | 
						|
	make -C simple-memory-corruption
 | 
						|
 | 
						|
clean:
 | 
						|
	rm -f $(EXECUTABLES)
 |