|
|
|
@ -1,4 +1,5 @@ |
|
|
|
SAMPLE=./sample/01-a-good-first-program.md
|
|
|
|
SAMPLE=./sample/01-a-good-first-program.md
|
|
|
|
|
|
|
|
ROOT_DIR=$(dir $(firstword $(MAKEFILE_LIST)))
|
|
|
|
|
|
|
|
|
|
|
|
all: build |
|
|
|
all: build |
|
|
|
|
|
|
|
|
|
|
|
@ -12,8 +13,8 @@ endif |
|
|
|
%.cpp : %.rl |
|
|
|
%.cpp : %.rl |
|
|
|
ragel -o $@ $<
|
|
|
|
ragel -o $@ $<
|
|
|
|
|
|
|
|
|
|
|
|
build: md_parser.cpp |
|
|
|
build: $(ROOT_DIR)/md_parser.cpp |
|
|
|
meson compile -j 10 -C builddir
|
|
|
|
meson compile -j 10 -C $(ROOT_DIR)/builddir
|
|
|
|
|
|
|
|
|
|
|
|
release_build: |
|
|
|
release_build: |
|
|
|
meson --wipe builddir -Db_ndebug=true --buildtype release
|
|
|
|
meson --wipe builddir -Db_ndebug=true --buildtype release
|
|
|
|
@ -23,10 +24,6 @@ debug_build: |
|
|
|
meson setup --wipe builddir -Db_ndebug=true --buildtype debugoptimized
|
|
|
|
meson setup --wipe builddir -Db_ndebug=true --buildtype debugoptimized
|
|
|
|
meson compile -j 10 -C builddir
|
|
|
|
meson compile -j 10 -C builddir
|
|
|
|
|
|
|
|
|
|
|
|
tracy_build: |
|
|
|
|
|
|
|
meson setup --wipe builddir --buildtype debugoptimized -Dtracy_enable=true -Dtracy:on_demand=true
|
|
|
|
|
|
|
|
meson compile -j 10 -C builddir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
run: build |
|
|
|
run: build |
|
|
|
ifeq '$(OS)' 'Windows_NT' |
|
|
|
ifeq '$(OS)' 'Windows_NT' |
|
|
|
powershell "cp ./builddir/besos.exe ."
|
|
|
|
powershell "cp ./builddir/besos.exe ."
|
|
|
|
|