aboutsummaryrefslogtreecommitdiff
path: root/Emacs
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-08-25 18:03:31 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-08-25 18:03:56 +0100
commit64b6adfda3a77f227adc080fd022569b6f9923c9 (patch)
treebf97b3610530c5a0012f0f23dcdd747840defa15 /Emacs
parentdc809af7a9d3a40ef17b075049c706bced84a821 (diff)
downloaddotfiles-64b6adfda3a77f227adc080fd022569b6f9923c9.tar.gz
dotfiles-64b6adfda3a77f227adc080fd022569b6f9923c9.tar.bz2
dotfiles-64b6adfda3a77f227adc080fd022569b6f9923c9.zip
(Emacs)~Makefile auto insert now has LIBS variable,-memcheck recipe
Diffstat (limited to 'Emacs')
-rw-r--r--Emacs/.config/emacs/config.org10
1 files changed, 3 insertions, 7 deletions
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