aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/config.org
diff options
context:
space:
mode:
Diffstat (limited to 'Emacs/.config/emacs/config.org')
-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