OBFLAGS =

.SUFFIXES : .exe .dll .cs .mod .lex .txt .resources .resx

.cs.dll:
	csc $(CSFLAGS) /t:dll $*.cs

.cs.exe:
	csc $(CSFLAGS) /t:exe $*.cs

.mod.dll:
	Oberon /dll $*.mod

.mod.exe:
	Oberon $*.mod

.resx.resources:
	resgen $*.resx

OUTFILES = \
	Hello.exe \
	BunnyRace.exe \
	Puzzle.exe \
	SameGame.exe

all : $(OUTFILES)

REFS = /r:System /r:System.Drawing /r:System.Windows.Forms

clean:
	del /q *.exe *.dll *.il

BunnyRace.exe: BunnyRace.mod
	Oberon $(OBFLAGS) BunnyRace.mod $(REFS)

Puzzle.exe: Puzzle.mod
	Oberon $(OBFLAGS) Puzzle.mod $(REFS)

SameGame.exe: SameGame.mod
	Oberon $(OBFLAGS) SameGame.mod $(REFS)

