TOOLPATH = ../z_tools/
MAKE     = make -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     = rm
COPY     = cp

.SUFFIXES: .java .class

ALL : $(TARGET).wrp

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

Main.class : $(SRCS)

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

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

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