General Purpose library for Freestanding C++ and POSIX systems
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

17 行
444 B

CXX= clang++
CXXFLAGS= --std=c++20 -target x86_64-none-linux-elf -O2 -ffreestanding -nostdlib -pedantic \
-Wno-unknown-attributes -fno-omit-frame-pointer -MD -fno-use-cxa-atexit -fno-rtti -I. -I../../include
# -fsanitize=address -fsanitize-blacklist=blacklist.txt
all: tests
tests: bin/tests
./bin/tests potato
bin/tests: main.cpp
@mkdir -p $(@D)
$(CXX) $(CXXFLAGS) main.cpp -nostartfiles -s -static -o $@
clean: ./bin
@rm -rf $<