General Purpose library for Freestanding C++ and POSIX systems
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
444 B

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