####
#### Java Makefile automatically generated by jmaker 2.0
#### Creation date: Wed Mar 21 04:39:29 2001
####

#### Java compiler settings
JAVAC       = javac
JAVAC_FLAGS = -classpath "c:/applications/cygwin/home/jde-dev/jde/java/classes;c:/applications/cygwin/home/jde-dev/jde/java/src;$(JAVA_HOME)/lib/tools.jar" -g -d c:/applications/cygwin/home/jde-dev/jde/java/classes

#### Targets settings
SRC_FILES   = ASCII_UCodeESC_CharStream.java ExpressionParser.java ExpressionParserConstants.java ExpressionParserTokenManager.java LValue.java ParseException.java Token.java TokenMgrError.java
SUBDIRS       = 
SUBDIRS_CLEAN = $(patsubst %,%.clean,$(SUBDIRS))
SUBDIRS_MAKE  = $(patsubst %,%.make,$(SUBDIRS))
CLASSDIR = $(JDEDEV)/jde/java/classes

#### Main targets

# Default
all: $(SUBDIRS_MAKE)
	$(JAVAC) $(JAVAC_FLAGS) $(SRC_FILES)

# Cleanup
clean: $(SUBDIRS_CLEAN)
	$(RM) $(CLASSDIR)/jde/debugger/expr/*.class
	@echo "Cleanup done."

# Rebuild
build: clean all
	@echo "Rebuild done."

#### Aux targets

# Files compilation
%.class: %.java
	$(JAVAC) $(JAVAC_FLAGS) $<

# Sub-directories compilation
%.make:
	$(MAKE) -k -C $(subst .make,,$@)

# Sub-directories cleanup
%.clean:
	$(MAKE) -k -C $(subst .clean,,$@) clean

# Phony Targets
.PHONY: clean build help

#### Help
help:
	@echo "Usage: make [targets...]"
	@echo ""
	@echo "where targets include:"
	@echo ""
	@echo "  help           display this help"
	@echo "  all            compile all (default)"
	@echo "  clean          remove all class files"
	@echo "  build          rebuild all inconditionnally"
	@echo "  <class file>   compile the given file"
	@echo "  <subdir>.make  compile the given subdir"
	@echo "  <subdir>.clean clean the given subdir"

