2013-04-17 09:53:14 +04:00
|
|
|
# Makefile for SDL2#
|
|
|
|
# Written by Ethan "flibitijibibo" Lee
|
|
|
|
|
|
|
|
# Source Lists
|
2014-10-07 20:29:29 +04:00
|
|
|
SRC = \
|
2013-07-13 22:21:00 +04:00
|
|
|
src/LPUtf8StrMarshaler.cs \
|
2013-04-17 09:53:14 +04:00
|
|
|
src/SDL2.cs \
|
|
|
|
src/SDL2_image.cs \
|
|
|
|
src/SDL2_mixer.cs \
|
|
|
|
src/SDL2_ttf.cs
|
|
|
|
|
|
|
|
# Targets
|
|
|
|
|
2014-05-09 09:59:15 +04:00
|
|
|
debug: clean-debug
|
2015-12-17 02:35:18 +03:00
|
|
|
mkdir -p bin/Debug
|
|
|
|
cp SDL2-CS.dll.config bin/Debug
|
|
|
|
dmcs /unsafe -debug -out:bin/Debug/SDL2-CS.dll -target:library $(SRC)
|
2013-04-17 09:53:14 +04:00
|
|
|
|
2014-05-09 09:59:15 +04:00
|
|
|
clean-debug:
|
2015-12-17 02:35:18 +03:00
|
|
|
rm -rf bin/Debug
|
2014-05-09 09:59:15 +04:00
|
|
|
|
|
|
|
release: clean-release
|
2015-12-17 02:35:18 +03:00
|
|
|
mkdir -p bin/Release
|
|
|
|
cp SDL2-CS.dll.config bin/Release
|
|
|
|
dmcs /unsafe -optimize -out:bin/Release/SDL2-CS.dll -target:library $(SRC)
|
2014-05-09 09:59:15 +04:00
|
|
|
|
|
|
|
clean-release:
|
2015-12-17 02:35:18 +03:00
|
|
|
rm -rf bin/Release
|
2014-05-09 09:59:15 +04:00
|
|
|
|
|
|
|
clean: clean-debug clean-release
|
2013-04-17 09:53:14 +04:00
|
|
|
rm -rf bin
|
2014-05-09 09:59:15 +04:00
|
|
|
|
|
|
|
all: debug release
|