Makefile madness

This commit is contained in:
Matthew Bowra-Dean
2010-02-17 20:40:19 +13:00
parent b7c49c0218
commit aa1738c345
8 changed files with 112 additions and 36 deletions

View File

@@ -1,19 +0,0 @@
CSC = gmcs
CFLAGS = -nologo -warn:4 -debug:+ -debug:full -optimize- -codepage:utf8 -unsafe
DEFINE = DEBUG;TRACE
PROGRAM = OpenRa.FileFormats.dll
LIBS = System.dll \
System.Core.dll \
System.Drawing.dll \
System.Xml.dll
TYPE = library
DIRS = . \
Support \
Collections \
Properties
refs := $(foreach ref, $(LIBS),-r:$(ref))
files := $(foreach dir, $(DIRS),$(wildcard $(dir)/*.cs))
$(PROGRAM) :
$(CSC) $(refs) "-out:$(PROGRAM)" $(CFLAGS) "-define:$(DEFINE)" -t:$(TYPE) $(files)