CC = gmcs LIB = Arthea.dll CONSOLE = ArtheaConsole.exe GUI = ArtheaGUI.exe BIN = ../ DOCS = ${BIN}doc FLAGS = -define:MONO -win32icon:Arthea.ico LIB_SRCS = `find . -name "*.cs" | sed 's/^\.\///g' | sed '/^Arthea/d'` CONSOLE_SRCS = `find ArtheaConsole -name "*.cs"` GUI_SRCS = `find ArtheaGUI -name "*.cs"` default: @echo "Options:" @echo -e " all\t\t- build everything." @echo -e " lib\t\t- build ${LIB}." @echo -e " console\t- build ${CONSOLE}." @echo -e " gui\t\t- build ${GUI}." @echo -e " doc\t\t- build documentation file." all: lib console gui console: lib ${CC} ${FLAGS} -target:exe -r:${BIN}${LIB} -out:${BIN}${CONSOLE} \ ${CONSOLE_SRCS} gui: lib ${CC} ${FLAGS} -target:exe -r:System.Windows.Forms.dll -r:${BIN}${LIB} \ -r:System.Drawing.dll -out:${BIN}${GUI} ${GUI_SRCS} lib: ${CC} ${FLAGS} -target:library -r:${BIN}ICSharpCode.SharpZipLib.dll \ -r:System.Data.dll -out:${BIN}${LIB} ${LIB_SRCS} doc: lib if [ ! -d ${DOCS} ]; then mkdir ${DOCS}; fi monodocer -assembly:${BIN}${LIB} -path:${DOCS}