##

##  Makefile for Windows NT

##





# defines

SUBDIRS	= glut.dir mui.dir

CLEAN	= $(SUBDIRS:.dir=.clean)

CLOBBER	= $(SUBDIRS:.dir=.clobber)





# default rule

default	: $(SUBDIRS)





# cleanup rules

clean	: $(CLEAN)

clobber	: $(CLOBBER)



test:

	@echo Testing in glut subdirectory...

	@cd glut

	@nmake -f Makefile.win -nologo test

	@cd ..

	@echo Testing in mui subdirectory...

	@cd mui

	@nmake -f Makefile.win -nologo test

	@cd ..



# inference rules

$(SUBDIRS)	:

	@echo.

	@echo Making in $* subdirectory...

	@cd $*

	@nmake -f Makefile.win -nologo

	@cd ..



$(CLEAN)	:

	@del *~

	@echo.

	@echo Cleaning in $* subdirectory...

	@cd $*

	@nmake -f Makefile.win -nologo clean

	@cd ..



$(CLOBBER)	:

	@echo.

	@echo Clobbering in $* subdirectory...

	@cd $*

	@nmake -f Makefile.win -nologo clobber

	@cd ..





