From 8e968078e6aee470a02bed7728100b2df1877e90 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 12 Aug 2024 14:50:07 +0000 Subject: basics: Add some examples on RISC-V assembly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- basics/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 basics/Makefile (limited to 'basics/Makefile') diff --git a/basics/Makefile b/basics/Makefile new file mode 100644 index 0000000..90e88ef --- /dev/null +++ b/basics/Makefile @@ -0,0 +1,20 @@ +CC = $(CROSS_COMPILE)gcc +LD = $(CROSS_COMPILE)ld +CCFLAGS = +EXE = basics + +DEBUG = +ifneq ($(strip $(DEBUG)),) + CCFLAGS += -g +endif + +.PHONY: all +all: clean $(EXE) + +.PHONY: $(EXE) +$(EXE): + gcc $(CCFLAGS) -o $(EXE) main.c factorial.S string.S + +.PHONY: clean +clean: + @rm -f $(EXE) -- cgit v1.2.3