From 0e42ae9f4c7e80875b45f73fb958e8b38c304824 Mon Sep 17 00:00:00 2001 From: Vinicius Silva Date: Tue, 25 Jun 2024 17:18:46 +0000 Subject: [PATCH] Create a unique 'makefile' --- 01_exit/makefile | 12 ------------ 02_hello/makefile | 12 ------------ makefile | 13 +++++++++++++ output.out | Bin 0 -> 928 bytes 4 files changed, 13 insertions(+), 24 deletions(-) delete mode 100644 01_exit/makefile delete mode 100644 02_hello/makefile create mode 100644 makefile create mode 100644 output.out diff --git a/01_exit/makefile b/01_exit/makefile deleted file mode 100644 index a685760..0000000 --- a/01_exit/makefile +++ /dev/null @@ -1,12 +0,0 @@ - -build: - @as -o output.out ./*.s - @ld -o output output.out - -run: - $(MAKE) build - @./output $(EXEC) - $(MAKE) clear - -clear: - @rm -rf ./*.out output diff --git a/02_hello/makefile b/02_hello/makefile deleted file mode 100644 index a685760..0000000 --- a/02_hello/makefile +++ /dev/null @@ -1,12 +0,0 @@ - -build: - @as -o output.out ./*.s - @ld -o output output.out - -run: - $(MAKE) build - @./output $(EXEC) - $(MAKE) clear - -clear: - @rm -rf ./*.out output diff --git a/makefile b/makefile new file mode 100644 index 0000000..56ced6b --- /dev/null +++ b/makefile @@ -0,0 +1,13 @@ +EXEC_DIR=$(shell find -type d -name $(target_dir)*) + +build: + @as -o $(EXEC_DIR)/output.out $(EXEC_DIR)/*.s + @ld -o $(EXEC_DIR)/output $(EXEC_DIR)/output.out + +run: + $(MAKE) build + @$(EXEC_DIR)/output $(EXEC) + $(MAKE) clear + +clear: + @rm -rf $(EXEC_DIR)/*.out $(EXEC_DIR)/output diff --git a/output.out b/output.out new file mode 100644 index 0000000000000000000000000000000000000000..ae20f59096c4a881acedc8722ef21c49d7886098 GIT binary patch literal 928 zcmbtS!Ab-%41KfX=m;JZFM=mQ5JAc)vfgAo=xP69?YJurI54!`W%c6KyFcL3&+%XU z0h5^)HB=Ec(7fiQNt%$S%hA;!Nf0E#2fnPp0Lt$j|X|q9YL(OgZ5La^y?I^Bz&{HslW&>YoL|qpZ(%Y)hW~`!|m~ jA3pq7mYp83PAGe4SK$lE^_BIveu=;K56?N-H<9t5z|}r| literal 0 HcmV?d00001