diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-08-12 14:50:07 +0000 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-05 16:02:17 +0100 |
| commit | 8e968078e6aee470a02bed7728100b2df1877e90 (patch) | |
| tree | 8f64d8a0e8d8e7a9329a8239fd3c57ce217d5ff7 /basics/Makefile | |
| parent | c173df46a0a12fe52fdf13323f967e9117462096 (diff) | |
| download | farga-8e968078e6aee470a02bed7728100b2df1877e90.tar.gz farga-8e968078e6aee470a02bed7728100b2df1877e90.zip | |
basics: Add some examples on RISC-V assembly
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'basics/Makefile')
| -rw-r--r-- | basics/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
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) |
