SDL2-CS/Makefile
2021-12-17 12:57:53 -05:00

34 lines
643 B
Makefile

# Makefile for SDL2#
# Written by Ethan "flibitijibibo" Lee
# Source Lists
SRC = \
src/SDL2.cs \
src/SDL2_gfx.cs \
src/SDL2_image.cs \
src/SDL2_mixer.cs \
src/SDL2_ttf.cs
# Targets
debug: clean-debug
mkdir -p bin/Debug
cp app.config bin/Debug/SDL2-CS.dll.config
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 app.config bin/Release/SDL2-CS.dll.config
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