# Author          : Brian Satterfield
# File            : Makefile
# System          : Q3ServerKit

# Copyright (C) 2000 Free Software Foundation, Inc.
# Brian Satterfield <legowhore@legowhore.com>, 2000.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


JAVA_SYSTEM 	 = q3
PACKAGE_NAME     = com/legowhore/${JAVA_SYSTEM}
J_PACKAGE_NAME   = com/legowhore/${JAVA_SYSTEM}

CLASSES = \
	$(CLASSDIR)/$(PACKAGE_NAME)/Q3ServerKit.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/Q3InfoClient.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/Q3Server.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/Player.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/PlayerDisplay.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/ServerInfoPanel.class	\
	$(CLASSDIR)/$(PACKAGE_NAME)/HackPanel.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/SwingWorker.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/HackTask.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/EffectsPanel.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/AboutPanel.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/ButtonPanel.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/MapsPanel.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/ServerSettingsPanel.class	\
	$(CLASSDIR)/$(PACKAGE_NAME)/StatisticsPanel.class	\
	$(CLASSDIR)/$(PACKAGE_NAME)/SettingPanel.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/BotsPanel.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/ServerStartPanel.class     	\
	$(CLASSDIR)/$(PACKAGE_NAME)/ChatPanel.class     	\
	$(CLASSDIR)/$(PACKAGE_NAME)/Console.class     		\
	$(CLASSDIR)/$(PACKAGE_NAME)/FeedbackPanel.class     		\
	$(CLASSDIR)/$(PACKAGE_NAME)/Settings.class	       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/Statistics.class       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/ServerProcess.class       	\
	$(CLASSDIR)/$(PACKAGE_NAME)/PercentLayout.class	       	

#all: $(CLASSES)
#
#$(CLASSDIR)/$(PACKAGE_NAME)/%.class: %.java
#	@echo "Building $<...";\
#	javac -g -classpath ${CLASSPATH}  -d ${CLASSDIR} $<

best: $(CLASSES)

$(CLASSDIR)/$(PACKAGE_NAME)/%.class: %.java
	javac -O -classpath ${CLASSPATH}  -d ${CLASSDIR} $<

clean::
	@rm -f $(CLASSDIR)/$(PACKAGE_NAME)/*.class

info::
	@echo "Info on '${JAVA_SYSTEM}' subsystem::";\
	sccs info

get::
	@echo "Getting '${JAVA_SYSTEM}' subsystem::"; \
	sccs get -r${RELEASE} SCCS

