#
# $Id: Makefile,v 1.2 1998/07/17 18:11:30 nicb Exp $
#								scale Makef

TOP = ../..

include $(TOP)/Make.Variables

THISDIR=util2/mixer
INCLUDES+=-I$(TOP)
LDFLAGS:=-L$(TOP) $(LDFLAGS)
MIXER=$(APP_PREFIX)mixer
OBJS=mixer.o xtrct.o
SRCS = $(OBJS:.o=.c) Makefile
EXTRACTOR=$(APP_PREFIX)extractor
SUBPROGS=$(MIXER) $(EXTRACTOR)

all:	$(SUBPROGS)

$(MIXER): mixer.o
	$(CC) $(LDFLAGS) -o $@ mixer.o $(LIBS)

$(EXTRACTOR): xtrct.o
	$(CC) $(LDFLAGS) -o $@ xtrct.o $(LIBS)

install: $(SUBPROGS)
	if [ ! -d $(DEST) ]; then $(MKDIR) $(DEST); fi
	for i in $(SUBPROGS);\
	do \
		$(INSTALL) -s -m 755 $$i $(DEST); \
	done

include $(TOP)/Make.Subdirs
#
# $Log: Makefile,v $
# Revision 1.2  1998/07/17 18:11:30  nicb
# [changes and additions by nicb@axnet.it]
#
# - configure process:
# 	- added canonical host detection and install detection
# 	- modified Makefiles to suit the install macro better
# 	- static linking does not imply -static anymore (not standalone,
# 	  just with csound library integration)
#
# - sources:
# 	- integrated back some changes made to suit the dynamical
# 	  main/library linking that somehow got lost in the original
# 	  sources (wonder how it did work up to now, but anyway it
# 	  was not working for static linking)
#
# Revision 1.1.1.1  1998/07/08 20:48:18  nicb
# - Initial Revision (second rebuilding of the repository)
#
# Revision 0.0  1998/05/16 12:07:07  nicb
# Initial Revision
#
