aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/user/basics/Makefile
blob: b4752a3e29d1d656309d994a81af5538c6b9ce20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)