#/*
# * Bernoulli Compiler
# * Copyright (c) Cornell University
# * Department of Computer Science
# * 
# * Kamen Yotov (kamen@yotov.org)
# * 
# * $Source: C:/CVS/kyotov/kyotov/Research/BC/BCC/makefile,v $
# * $Revision: 1.5 $
# * $Date: 2003/02/23 18:16:40 $
# */

NAME = BCC

!INCLUDE "..\makefile.mak"

!IF EXIST(sources.lst)
SOURCES = \
!INCLUDE "sources.lst"

!ENDIF

build: 
	dir *.cs /b | $(FILTER) ".*" "  {0} \\" > sources.lst
	nmake /NOLOGO $(D)\BCC.exe
	del sources.lst

$(D)\BCC.exe: $(SOURCES) $(D)\Omega.dll $(D)\OmegaLIB.dll $(D)\BC.Core.ASTs.dll $(D)\BC.Core.Passes.dll $(D)\BC.Core.dll $(D)\BC.C.dll
	$(CSC) $(CSCFlags) /out:$@ $(SOURCES) /r:$(D)\BC.Core.ASTs.dll /r:$(D)\BC.Core.Passes.dll /r:$(D)\BC.Core.dll /r:$(D)\BC.C.dll /r:$(D)\Omega.dll

!INCLUDE "..\copy.mak"
