aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/user/basics/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/user/basics/Makefile')
-rw-r--r--arch/riscv/user/basics/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/riscv/user/basics/Makefile b/arch/riscv/user/basics/Makefile
new file mode 100644
index 0000000..b4752a3
--- /dev/null
+++ b/arch/riscv/user/basics/Makefile
@@ -0,0 +1,19 @@
+CC = $(CROSS_COMPILE)gcc
+CCFLAGS =
+EXE = basics
+
+DEBUG =
+ifneq ($(strip $(DEBUG)),)
+ CCFLAGS += -g
+endif
+
+.PHONY: all
+all: clean $(EXE)
+
+.PHONY: $(EXE)
+$(EXE):
+ $(CC) $(CCFLAGS) -o $(EXE) basics.c factorial.S string.S float.S
+
+.PHONY: clean
+clean:
+ @rm -f $(EXE)