1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-23 18:06:20 +04:00
osblog/risc_v/userspace/Makefile

16 lines
220 B
Makefile

CROSS=riscv64-unknown-elf-
CXX=g++
CXXFLAGS=-Wall -O3 -static -I.
SOURCES=$(wildcard *.cpp)
OUT=$(patsubst %.cpp,%,$(SOURCES))
all: $(OUT)
%: %.cpp Makefile
$(CROSS)$(CXX) $(CXXFLAGS) -o $@ $<
clean:
rm -f $(OUT)