TOOLPATH = ../z_tools/
MAKE     = $(TOOLPATH)make.exe -r
SJISCONV = $(TOOLPATH)sjisconv.exe -s
BIM2BIN  = $(TOOLPATH)bim2bin3.exe
CC       = $(TOOLPATH)jikes/jikes
CFLAGS   = -g:none -target 1.1 -encoding SJIS
LFLAGS   = -bootclasspath ..\z_tools\jikes\glibj.zip -classpath ..\z_tools\jikes\waba.zip;.
DELE     = del
COPY     = copy

.SUFFIXES: .java .class

ALL : $(TARGET).wrp

.java.class :
	$(CC) $(CFLAGS) $(LFLAGS) $(SRCS)

Main.class : $(SRCS)

$(TARGET).wrp: Main.class
	warp c $(TARGET) $(OBJS)

clean :
	$(DELE) *.class *.pdb *.wrp

run : $(TARGET).wrp
	$(COPY) $(TARGET).wrp ..\z_tools\waba\test.wrp
	$(MAKE) -C $(TOOLPATH)\waba
