summaryrefslogtreecommitdiff
path: root/include.mk
blob: 7eeace2a670b522b9c03d5aa9b1df7a64a8e82e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CSC_DEBUGFLAGS=-debug -d:TRACE
CSC=gmcs $(CSC_DEBUGFLAGS)
MONO_DEBUGFLAGS=--debug
RUNTIME=mono $(MONO_DEBUGFLAGS)

#TODO: unsafe, resources
#curr dir refs go in args

#%.exe:
%.exe %.dll %.module:
	$(CSC) $(CSFLAGS) -out:$@ -t:$(TARGET) $(addprefix -pkg:,$(PKGS)) $(addprefix -r:,$(REFS)) $(addprefix -r:,$(filter %.dll,$^)) $(addprefix -addmodule:,$(filter %.module,$^)) $(filter %.cs,$^)

%.exe: TARGET = exe

%.dll: TARGET = library

%.module: TARGET = module

#$(MODULE)_SOURCES := foo.cs