SDL2-CS/Makefile
2018-09-10 00:12:13 -04:00

33 lines
602 B
Makefile

# Makefile for SDL2#
# Written by Ethan "flibitijibibo" Lee
# Source Lists
SRC = \
src/SDL2.cs \
src/SDL2_image.cs \
src/SDL2_mixer.cs \
src/SDL2_ttf.cs
# Targets
debug: clean-debug
mkdir -p bin/Debug
cp SDL2-CS.dll.config bin/Debug
mcs /unsafe -debug -out:bin/Debug/SDL2-CS.dll -target:library $(SRC)
clean-debug:
rm -rf bin/Debug
release: clean-release
mkdir -p bin/Release
cp SDL2-CS.dll.config bin/Release
mcs /unsafe -optimize -out:bin/Release/SDL2-CS.dll -target:library $(SRC)
clean-release:
rm -rf bin/Release
clean: clean-debug clean-release
rm -rf bin
all: debug release