################################################################################
#
# File:		util/Makefile
# Version:	$Id: Makefile,v 1.10 1995/08/07 05:47:34 burgaard Exp $	
#
# Project:      MIDI/Sequencer library.
#		Roland MPU-401 Device driver.
# Authors:	Kim Burgaard, <burgaard@daimi.aau.dk>
# Copyrights:	Copyright (c) 1994, 1995 Kim Burgaard.
#
#		This program is free software; you can redistribute it and/or
#		modify it under the terms of the GNU General Public License as
#		published by the Free Software Foundation; either version 2, or
#		(at your option) any later version.
#
#		This program is distributed in the hope that it will be useful,
#		but WITHOUT ANY WARRANTY; without even the implied warranty of
#		MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#		GNU General Public License for more details.
#
#		You should have received a copy of the GNU General Public
#		License along with this program; see the file COPYING.  If not,
#		write to the Free Software Foundation, 675 Mass Ave, Cambridge,
#		MA 02139, USA.
#
################################################################################

SRCS      = gsreset.c smfcheck.c smfplay.c smfrecord.c smfedit.c
UTILITIES = gsreset smfcheck smfplay smfrecord smfedit
MAN1	  = gsreset.1 smfcheck.1 smfedit.1 smfplay.1 smfrecord.1

################################################################################

all:	$(UTILITIES)

gsreset:	gsreset.c ../include/*.h
	$(CC) $(CFLAGS) -o $@ $@.c

smfplay:	smfplay.c ../include/*.h
	$(CC) $(CFLAGS) $(LFLAGS) -o $@ $@.c

smfrecord:	smfrecord.c ../include/*.h
	$(CC) $(CFLAGS) $(LFLAGS) -o $@ $@.c

smfcheck:	smfcheck.c ../include/*.h
	$(CC) $(CFLAGS) $(LFLAGS) -o $@ $@.c

smfedit:	smfedit.c ../include/*.h
	$(CC) $(CFLAGS) $(LFLAGS) -o $@ $@.c

###############################################################################

clean:	
	-rm -f $(UTILITIES) core *.o *.a *.s

install:	all
	install --directory --mode a+rx $(MANDIR)/man1
	install --directory --mode a+rx $(BINDIR)

	install --mode a+r $(MAN1) $(MANDIR)/man1
	install --strip --mode a+rx $(UTILITIES) $(BINDIR)

uninstall:
	cd $(BINDIR) && rm -f $(UTILITIES)
	cd $(MANDIR)/man1 && rm -f $(MAN1)

### End of File #################################################################
# Local variables:
#   fill-column: 81
# End:
