makefile change

This commit is contained in:
inixyz
2023-10-29 15:37:00 +02:00
parent 78b699a86a
commit 468a4a5942
10 changed files with 23 additions and 94 deletions

View File

@@ -1,2 +1,12 @@
default:
gcc src/*.c -o tinyriscv
CC := gcc
FLAGS := -Wall -O2
SRC := src/*.c
TARGET := tinyriscv.out
all:
$(CC) $(SRC) $(FLAGS) -o $(TARGET)
.PHONY: clean
clean:
rm $(TARGET)