diff options
author | terminaldweller <thabogre@gmail.com> | 2021-07-10 22:56:23 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-07-10 22:56:23 +0000 |
commit | 4ed623d52ff73c70be739a476daa12f58ddf7e46 (patch) | |
tree | 0e11c7efa44dee99f5efaf0ebcac80087d3fec80 /makefilec | |
parent | update (diff) | |
download | scripts-4ed623d52ff73c70be739a476daa12f58ddf7e46.tar.gz scripts-4ed623d52ff73c70be739a476daa12f58ddf7e46.zip |
switch between vim and tmux with c-w c-w. feels comfy. changed diasm into actual asm for c and c++ in the makefiles. some more things for vim.
Diffstat (limited to '')
-rw-r--r-- | makefilec | 11 | ||||
-rw-r--r-- | makefilecpp | 9 |
2 files changed, 11 insertions, 9 deletions
@@ -29,7 +29,7 @@ EXCLUSION_LIST='xxxxxx' OBJ_LIST:=$(patsubst %.c, %.o, $(shell find . -name '*.c' | grep -Ev $(EXCLUSION_LIST))) OBJ_COV_LIST:=$(patsubst %.c, %.ocov, $(shell find . -name '*.c' | grep -Ev $(EXCLUSION_LIST))) OBJ_DBG_LIST:=$(patsubst %.c, %.odbg, $(shell find . -name '*.c' | grep -Ev $(EXCLUSION_LIST))) -ASM_LIST:=$(patsubst %.c, %.dis, $(shell find . -name '*.c' | grep -Ev $(EXCLUSION_LIST))) +ASM_LIST:=$(patsubst %.c, %.s, $(shell find . -name '*.c' | grep -Ev $(EXCLUSION_LIST))) WASM_LIST:=$(patsubst %.c, %.wasm, $(shell find . -name '*.c' | grep -Ev $(EXCLUSION_LIST))) WAST_LIST:=$(patsubst %.c, %.wast, $(shell find . -name '*.c' | grep -Ev $(EXCLUSION_LIST))) IR_LIST:=$(patsubst %.c, %.ir, $(shell find . -name '*.c' | grep -Ev $(EXCLUSION_LIST))) @@ -149,8 +149,9 @@ tags:$(SRCS) sed -e 's/[\\ ]/\n/g'|sed -e '/^$$/d' -e '/\.o:[ \t]*$$/d'|\ ctags -L - --c++-kinds=+p --fields=+iaS --extra=+q) -%.dis: %.o - objdump -r -d -M intel -S $< > $@ +%.s: %.c + $(CC) -S $< -o $@ + # objdump -r -d -M intel -S $< > $@ %.ir: %.c $(CC) -emit-llvm -S -o $@ $< @@ -183,7 +184,7 @@ test: $(TARGET) $(TARGET) run: $(TARGET) - $(TARGET) + "./$(TARGET)" valgrind: $(TARGET) - valgrind --track-origins=yes --leak-check=full --show-leak-kinds=all $(TARGET) @@ -198,7 +199,7 @@ format: - clang-format -i $(SRCS) $(HDRS) clean: - - rm -f *.o *.dis *.odbg *.ocov *.js *.ir *~ $(TARGET) $(TARGET).so $(TARGET)-static \ + - rm -f *.o *.s *.odbg *.ocov *.js *.ir *~ $(TARGET) $(TARGET).so $(TARGET)-static \ $(TARGET)-dbg $(TARGET).a $(TARGET)-cov *.wasm *.wast $(TARGET).adbg *.ast deepclean: clean diff --git a/makefilecpp b/makefilecpp index 8855fa8..7bcb7fa 100644 --- a/makefilecpp +++ b/makefilecpp @@ -29,7 +29,7 @@ EXCLUSION_LIST='xxxxxx' OBJ_LIST:=$(patsubst %.cpp, %.o, $(shell find . -name '*.cpp' | grep -Ev $(EXCLUSION_LIST))) OBJ_COV_LIST:=$(patsubst %.cpp, %.ocov, $(shell find . -name '*.cpp' | grep -Ev $(EXCLUSION_LIST))) OBJ_DBG_LIST:=$(patsubst %.cpp, %.odbg, $(shell find . -name '*.cpp' | grep -Ev $(EXCLUSION_LIST))) -ASM_LIST:=$(patsubst %.cpp, %.dis, $(shell find . -name '*.cpp' | grep -Ev $(EXCLUSION_LIST))) +ASM_LIST:=$(patsubst %.cpp, %.s, $(shell find . -name '*.cpp' | grep -Ev $(EXCLUSION_LIST))) WASM_LIST:=$(patsubst %.cpp, %.wasm, $(shell find . -name '*.cpp' | grep -Ev $(EXCLUSION_LIST))) WAST_LIST:=$(patsubst %.cpp, %.wast, $(shell find . -name '*.cpp' | grep -Ev $(EXCLUSION_LIST))) IR_LIST:=$(patsubst %.cpp, %.ir, $(shell find . -name '*.cpp' | grep -Ev $(EXCLUSION_LIST))) @@ -154,8 +154,9 @@ tags:$(SRCS) sed -e 's/[\\ ]/\n/g'|sed -e '/^$$/d' -e '/\.o:[ \t]*$$/d'|\ ctags -L - --c++-kinds=+p --fields=+iaS --extra=+q) -%.dis: %.o - objdump -r -d -M intel -S $< > $@ +%.s: %.cpp + $(CXX) -S $< -o $@ + # objdump -r -d -M intel -S $< > $@ %.ir: %.cpp $(CXX) -emit-llvm -S -o $@ $< @@ -188,7 +189,7 @@ test: $(TARGET) $(TARGET) run: $(TARGET) - $(TARGET) + "./$(TARGET)" valgrind: $(TARGET) - valgrind --track-origins=yes --leak-check=full --show-leak-kinds=all $(TARGET) |