#

CC = gcc
#CFLAGS = -Wall -ansi -O2 -DDEBUG
CFLAGS = -Wall -ansi -O2

BINDIR = /usr/local/bin

PROGS = smfplay smf1to0 rcptomid mfile

SMFOBJS = smf.o packet.o bulk.o

all: $(PROGS)

install: all
	install -m 755 $(PROGS) $(BINDIR)

clean:
	rm -f $(PROGS) *.o

archive:
	tar czf miditools.tar.gz *.c *.h Makefile README mp gs-init.mid

smfplay: smfplay.o error.o $(SMFOBJS)
smf1to0: smf1to0.o error.o $(SMFOBJS)
rcptomid: rcptomid.o rcp.o error.o $(SMFOBJS)
mfile: mfile.o
