#								UTIL Makef
# macros passed from csound/Makefile
#	CFLAGS DESTDIR INCLUDE LIBLIB

MAKE = make -f Makef "CFLAGS=$(CFLAGS)" "DESTDIR=$(DESTDIR)" "INCLUDE=$(INCLUDE)" "LIBLIB=$(LIBLIB)"

MAKED = make -f Makef "DESTDIR=$(DESTDIR)" 

SORTS = scsort extract

utils:	scots cscores sortexs

scots:
	cd scot; $(MAKED) $@

cscores:
	cd cscore; $(MAKE) $@

sortexs $(SORTS):
	cd sortex; $(MAKE) $@

install:
	cd scot; $(MAKED) install
	cd cscore; $(MAKE) install
	cd sortex; $(MAKE) install

clean:
	cd scot; $(MAKED) clean
	cd cscore; $(MAKE) clean
	cd sortex; $(MAKE) clean

rmbak:
	-rm *.bak *~
	cd scot; $(MAKED) rmbak
	cd cscore; $(MAKE) rmbak
	cd sortex; $(MAKE) rmbak
