OPTS = -DTYPE_bool -DTEST -DMICROSOFT -DWIN32_FILE_SYSTEM
FLAGS = /nologo /c 

%.obj: %.cpp
	cl $(FLAGS) $(OPTS) $<

FILES = \
	ast.cpp \
	body.cpp \
	bytecode.cpp \
	case.cpp \
	code.cpp \
	config.cpp \
	control.cpp \
	decl.cpp \
	definite.cpp \
	depend.cpp \
	diagnose.cpp \
	double.cpp \
	dump.cpp \
	error.cpp \
	expr.cpp \
	getclass.cpp \
	incrmnt.cpp \
	init.cpp \
	javaact.cpp \
	long.cpp \
	lookup.cpp \
	lpginput.cpp \
	modifier.cpp \
	op.cpp \
	option.cpp \
	parser.cpp \
	scanner.cpp \
	set.cpp \
	stream.cpp \
	symbol.cpp \
	system.cpp \
	tab.cpp \
	unzip.cpp \
	zip.cpp 

OBJS = $(FILES:.cpp=.obj)

all: $(OBJS) jikes

jikes: 
	cl /nologo /Fejikes $(OPTS) $(OBJS) jikes.cpp

clean:
	rm -f *.obj