Merge pull request #58 from nickgravelyn/master

Adding release build to Makefile
This commit is contained in:
Ethan Lee 2014-05-09 10:13:30 -04:00
commit 3ea9ae0ede

View file

@ -93,10 +93,23 @@ MINITK = \
# Targets # Targets
build: clean debug: clean-debug
mkdir bin mkdir -p bin/debug
cp SDL2-CS.dll.config bin cp SDL2-CS.dll.config bin/debug
dmcs /unsafe -debug -out:bin/SDL2-CS.dll -target:library $(SDL2) $(MINITK) $(DEPS) dmcs /unsafe -debug -out:bin/debug/SDL2-CS.dll -target:library $(SDL2) $(MINITK) $(DEPS)
clean: clean-debug:
rm -rf bin/debug
release: clean-release
mkdir -p bin/release
cp SDL2-CS.dll.config bin/release
dmcs /unsafe -optimize -out:bin/release/SDL2-CS.dll -target:library $(SDL2) $(MINITK) $(DEPS)
clean-release:
rm -rf bin/release
clean: clean-debug clean-release
rm -rf bin rm -rf bin
all: debug release