From 64b6adfda3a77f227adc080fd022569b6f9923c9 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 25 Aug 2023 18:03:31 +0100 Subject: (Emacs)~Makefile auto insert now has LIBS variable,-memcheck recipe --- Emacs/.config/emacs/config.org | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Emacs/.config') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index c748fd5..e6d716a 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -2482,15 +2482,16 @@ change it for C++. "" "CC=gcc CFLAGS=-Wall -Wextra -pedantic -ggdb -fsanitize=address +LIBS= OBJECTS=main.o OUT=main ARGS= %.o: %.c - $(CC) $(CFLAGS) -c $^ -o $@ + $(CC) $(CFLAGS) -c $^ -o $@ $(LIBS) $(OUT): $(OBJECTS) - $(CC) $(CFLAGS) $^ -o $@ + $(CC) $(CFLAGS) $^ -o $@ $(LIBS) .PHONY: clean: @@ -2499,11 +2500,6 @@ clean: .PHONY: run run: $(OUT) ./$^ $(ARGS) - - -.PHONY: memcheck -memcheck: $(OUT) - sh /etc/profile.d/debuginfod.sh && valgrind --leak-check=full -s --tool=memcheck ./$^ $(ARGS)" _)) #+end_src * Org mode -- cgit v1.2.3-13-gbd6f