mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-10-07 06:56:32 +02:00
Merge 45487891f1
into e371736b17
This commit is contained in:
commit
64d683601c
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -110,6 +110,9 @@ CPPFLAGS += \
|
||||||
-DCONFIG_STATS=$(CONFIG_STATS) \
|
-DCONFIG_STATS=$(CONFIG_STATS) \
|
||||||
-DCONFIG_SELF_INIT=$(CONFIG_SELF_INIT)
|
-DCONFIG_SELF_INIT=$(CONFIG_SELF_INIT)
|
||||||
|
|
||||||
|
$(OUT)/libhardened_malloc$(SUFFIX).a: $(OBJECTS) | $(OUT)
|
||||||
|
ar rcs $@ $^
|
||||||
|
|
||||||
$(OUT)/libhardened_malloc$(SUFFIX).so: $(OBJECTS) | $(OUT)
|
$(OUT)/libhardened_malloc$(SUFFIX).so: $(OBJECTS) | $(OUT)
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -shared $^ $(LDLIBS) -o $@
|
$(CC) $(CFLAGS) $(LDFLAGS) -shared $^ $(LDLIBS) -o $@
|
||||||
|
|
||||||
|
@ -138,7 +141,7 @@ tidy:
|
||||||
clang-tidy --extra-arg=-std=c++17 $(filter %.cc,$(SOURCES)) -- $(CPPFLAGS)
|
clang-tidy --extra-arg=-std=c++17 $(filter %.cc,$(SOURCES)) -- $(CPPFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OUT)/libhardened_malloc.so $(OBJECTS)
|
rm -f $(OUT)/libhardened_malloc.so $(OUT)/libhardened_malloc.a $(OBJECTS)
|
||||||
$(MAKE) -C test/ clean
|
$(MAKE) -C test/ clean
|
||||||
|
|
||||||
test: $(OUT)/libhardened_malloc$(SUFFIX).so
|
test: $(OUT)/libhardened_malloc$(SUFFIX).so
|
||||||
|
|
Loading…
Add table
Reference in a new issue