Skip to content

Commit

Permalink
Makefile to build with make/ninja and run
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Nov 18, 2015
1 parent 089791d commit 2095fe2
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
all: build

mkdir_build:
rm -rf build
mkdir -p build

build: mkdir_build
cd build; cmake ..
make -C build

build_ninja: mkdir_build
cd build; cmake -GNinja ..
ninja -C build

debug: mkdir_build
cd build; cmake -DCMAKE_BUILD_TYPE=Debug ..
make -C build

debug_ninja: mkdir_build
cd build; cmake -GNinja -DCMAKE_BUILD_TYPE=Debug ..
ninja -C build

run:
cd build; ./uMario


.PHONY: mkdir_build

0 comments on commit 2095fe2

Please sign in to comment.