#
# @(#)Makefile	1.19 99/02/16
#
# Makefile for building the jfc demos
#

BUILDDIR = ..\..
!include $(BUILDDIR)\makefiles\defs.nmk

SUBDIRS      = Munge DBDemos FileChooserDemo Notepad Metalworks SampleTree \
	       SimpleExample Stylepad SwingApplet SwingSet TableExample Java2D

ACTIONS      = all debug optimized classes
CLEANACTIONS = clean cleanall clobber clobberall

default : $(SUBDIRS)

everything : $(SUBDIRS) 

$(ACTIONS) ::
	@nmake -nologo action=$@ RELEASE=$(RELEASE)

$(CLEANACTIONS) ::
	@nmake -nologo everything action=$@ RELEASE=$(RELEASE)

$(SUBDIRS) $(OPTSUBDIRS) : FORCE
	cd $@
	nmake -nologo $(action) RELEASE=$(RELEASE)
	cd ..

swing-1.1-demo:
	cd SwingSet
	nmake swing-1.1 SWING_DEMODIR=1.1_demo\jfc BUILD_FOR_JDK11=1
	cd ..

swing-1.1-clobber:
	cd SwingSet
	nmake $@ SWING_DEMODIR=1.1_demo\jfc BUILD_FOR_JDK11=1
	cd ..

FORCE :
