Compare commits

...

6 commits

Author SHA1 Message Date
qikp0
2f00ea246e
Merge 5c9dede575 into 261b7bbf09 2025-12-07 19:37:02 +11:00
Ganwtrs
261b7bbf09 Correct title of README from Hardened malloc to hardened_malloc 2025-12-06 00:40:28 -05:00
Ganwtrs
74ef8a96ed Remove spaces around the slash (like one/two) 2025-12-05 21:55:56 -05:00
Charles
5c9dede575 Use $(AR) 2025-11-15 22:12:13 +00:00
Charles
1f40535cec Also remove static library when cleaning 2025-11-15 22:12:13 +00:00
Charles
a22f5f911b Add an option to build a static library 2025-11-15 22:12:13 +00:00
2 changed files with 16 additions and 13 deletions

View file

@ -110,6 +110,9 @@ CPPFLAGS += \
-DCONFIG_STATS=$(CONFIG_STATS) \
-DCONFIG_SELF_INIT=$(CONFIG_SELF_INIT)
$(OUT)/libhardened_malloc$(SUFFIX).a: $(OBJECTS) | $(OUT)
$(AR) rcs $@ $^
$(OUT)/libhardened_malloc$(SUFFIX).so: $(OBJECTS) | $(OUT)
$(CC) $(CFLAGS) $(LDFLAGS) -shared $^ $(LDLIBS) -o $@
@ -138,7 +141,7 @@ tidy:
clang-tidy --extra-arg=-std=c++17 $(filter %.cc,$(SOURCES)) -- $(CPPFLAGS)
clean:
rm -f $(OUT)/libhardened_malloc.so $(OBJECTS)
rm -f $(OUT)/libhardened_malloc.so $(OUT)/libhardened_malloc.a $(OBJECTS)
$(MAKE) -C test/ clean
test: $(OUT)/libhardened_malloc$(SUFFIX).so

View file

@ -1,4 +1,4 @@
# Hardened malloc
# hardened_malloc
* [Introduction](#introduction)
* [Dependencies](#dependencies)