#+======================================================================
# $Source: /segfs/tango/tools/pogo/appli/RCS/Makefile,v $
#
# Project:      Tango Device Server
#
# Description:  Makefile to generate the JAVA Tango classes package
#
# $Author: verdier $
#
# $Version$
#
# $Log: Makefile,v $
# Revision 1.23  2000/10/24 06:21:22  verdier
# The compatibility with TANGO2 has been tested on DatabaseDs.
#
# Revision 1.20  2000/07/07 13:30:10  verdier
# Utilities added after first users.
#
# Revision 1.18  2000/06/20 06:57:35  verdier
# Right button double click management added for :
# editing src code, creating item, editing class....
# Little bugs fixed on generation/re-read src code.
#
# Revision 1.17  2000/05/12 07:37:10  verdier
#  Attributes management added for java generation.
#
# Revision 1.16  2000/04/26 06:04:00  verdier
# The save/restore file (.pogo) does not exist anymore.
# DevStates and DevStates allowed management is now available for java.
#
# Revision 1.15  2000/04/18 08:12:47  verdier
# Management of DevStates to allow command added.
#
# Revision 1.14  2000/04/12 09:25:43  verdier
# Methods to manage attributes are now generated
#  Only if at leat one attribute exists.
#
# Revision 1.13  2000/04/11 09:35:07  verdier
# Attributes management added.
#
# Revision 1.2  2000/03/03 09:43:00  verdier
# States management added
#
# Revision 1.1  2000/02/28 15:41:38  verdier
# Initial revision
#
# Revision 1.1  2000/02/28 14:57:44  verdier
# Initial revision
#
#
# copyleft :    European Synchrotron Radiation Facility
#               BP 220, Grenoble 38043
#               FRANCE
#
#-======================================================================


TANGO_HOME=	/segfs/tango
PACK_HOME= $(TANGO_HOME)/tools
JAR_DIR = $(PACK_HOME)/jar


JAVAC = javac
# -----------------------------------------------------------------
#
#		The compiler flags
#
#------------------------------------------------------------------

JAVAFLAGS = -g

#-------------------------------------------------------------------

CLASS	=	Pogo

CL_LIST =	$(CLASS)AppliDefs.class		\
			ClassDialog.class			\
			CommandDialog.class			\
			NotAllowedDialog.class		\
			AttributeDialog.class		\
			StateDialog.class			\
			PropertyDialog.class		\
			PrefGeneDialog.class		\
			GenerateDialog.class		\
			GenerateThread.class		\
			EditPogoCode.class			\
			$(CLASS)Tree.class			\
			$(CLASS)Help.class			\
			$(CLASS)FileFilter.class	\
			$(CLASS)Appli.class

PACKAGE = pogo

DOC_HEADER	=	"<h1>POGO Java Program</h1>"
#
# Rule for compiling
#

.SUFFIXES:	.class .java
.java.class:
	$(JAVAC) $(JAVAFLAGS) $<

#-----------------------------------------------------------------

all:	gene $(PACKAGE) exe

$(PACKAGE): 	$(CL_LIST)

gene:
	@cd ../gene; make  $(PACKAGE)

exe:
	@./pogo

clean:
	rm  -f *.class
	@cd ../gene; rm  -f *.class

jar:	$(PACKAGE)
	cd $(PACK_HOME); jar cvf $(JAR_DIR)/$(CLASS)2.jar	\
		$(PACKAGE)/appli/*.class						\
		$(PACKAGE)/gene/*.class							\
		utilities/RcsId.class


doc:
	@javadoc 				\
	-private 				\
	-version -author		\
	-nodeprecated			\
	-windowtitle POGO		\
	-header $(DOC_HEADER)	\
	-d ../doc/pr_guide		\
	*.java ../gene/*.java

