#                          YIFF Sound Systems
#
#                           Toplevel Makefile
#

ALL_DIRS=stuff libY2 yiff yiffconfig yiffutils
LINUX_DIRS=libY2 yiff yiffconfig yiffutils
LINUX_NOSERVER_DIRS=libY2 yiffutils

#
# Build the YIFF Sound System components on the Linux operating system.
#
linux:
	for subdir in $(LINUX_DIRS); do					\
	  LIB_DIR=-L../libY2;						\
	  make -C $$subdir -f Makefile.Linux all; 			\
	done

linux_noserver:
	for subdir in $(LINUX_NOSERVER_DIRS); do			\
	  LIB_DIR=-L../libY2;						\
	  make -C $$subdir -f Makefile.Linux all;			\
	done

#
# Install the YIFF Sound System components/
# Remove intermediate files
#
install clean:
	for subdir in $(ALL_DIRS); do					\
	  make -C $$subdir $@;						\
	done

install_noserver:
	for subdir in $(LINUX_NOSERVER_DIRS); do			\
	  make -C $$subdir install;					\
	done
