1# Makefile for SDL2#
2# Written by Ethan "flibitijibibo" Lee
3
4# Source Lists
5SRC = \
6 src/SDL2.cs \
7 src/SDL2_gfx.cs \
8 src/SDL2_image.cs \
9 src/SDL2_mixer.cs \
10 src/SDL2_ttf.cs
11
12# Targets
13
14debug: clean-debug
15 mkdir -p bin/Debug
16 cp app.config bin/Debug/SDL2-CS.dll.config
17 mcs /unsafe -debug -out:bin/Debug/SDL2-CS.dll -target:library $(SRC)
18
19clean-debug:
20 rm -rf bin/Debug
21
22release: clean-release
23 mkdir -p bin/Release
24 cp app.config bin/Release/SDL2-CS.dll.config
25 mcs /unsafe -optimize -out:bin/Release/SDL2-CS.dll -target:library $(SRC)
26
27clean-release:
28 rm -rf bin/Release
29
30clean: clean-debug clean-release
31 rm -rf bin
32
33all: debug release