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