mudgangster

Tiny, scriptable MUD client
Log | Files | Refs | README

Makefile (742B)


      1 all: debug
      2 .PHONY: debug asan bench release clean
      3 
      4 LUA = ggbuild/lua.linux
      5 NINJA = ggbuild/ninja.linux
      6 
      7 WSLENV ?= notwsl
      8 ifndef WSLENV
      9 	LUA = ggbuild/lua.exe
     10 	NINJA = ggbuild/ninja.exe
     11 endif
     12 
     13 debug:
     14 	@$(LUA) make.lua > build.ninja
     15 	@$(NINJA)
     16 
     17 asan:
     18 	@$(LUA) make.lua asan > build.ninja
     19 	@$(NINJA)
     20 
     21 bench:
     22 	@$(LUA) make.lua bench > build.ninja
     23 	@$(NINJA)
     24 
     25 release:
     26 	@$(LUA) make.lua release > build.ninja
     27 	@$(NINJA)
     28 
     29 clean:
     30 	@$(LUA) make.lua debug > build.ninja
     31 	@$(NINJA) -t clean || true
     32 	@$(LUA) make.lua asan > build.ninja || true
     33 	@$(NINJA) -t clean || true
     34 	@$(LUA) make.lua bench > build.ninja || true
     35 	@$(NINJA) -t clean || true
     36 	@rm -f src/gitversion.h
     37 	@rm -rf build release
     38 	@rm -f *.exp *.ilk *.ilp *.lib *.pdb
     39 	@rm -f build.ninja