# Makefile for exput
# Copyright 1989 Carnegie Mellon University
# Last modified date: 

CMTDIR = ../../lib
CMTLIB = $(CMTDIR)/libcmt.a

MIDIDIR = /afs/cs/project/itc-i386-D-timer/midi/rtmach
MACH3DIR = /usr/itcrtmach
LINKMIDILIB = -L$(MIDIDIR) -lmtmidi -lmidi -L$(MACH3DIR)/lib -lnetname -lmach_rt

# Definition of Compiler, Linker, and Flags
CC = cc
CFLAGS = -c -g -I$(CMTDIR) -DITC_MACH -I$(MIDIDIR) -I$(MACH3DIR)/include -I$(MACH3DIR)/include/mach
LN = cc
LFLAGS = -L../../lib -lcmt $(LINKMIDILIB)

# EVERYTHING is everything this makefile knows how to make (except ummakefile)
EVERYTHING = exput

# CURRENT is the file we want to make now.
CURRENT = $(EVERYTHING) ummakefile

EXPUTOBJ = exput.o 

#-------------------------------------------------------------------------

current : $(CURRENT)
	echo "made $(CURRENT)"

everything : $(EVERYTHING)
	echo "made $(EVERYTHING)"

exput : $(EXPUTOBJ) $(CMTLIB)
	$(LN) -o exput $(LINITFLAGS) $(EXPUTOBJ) $(LFLAGS) 

# clean objects for library
clean :
	rm -f $(EXPUTOBJ)
	rm -f *.BAK *.CKP

recompile : clean
	rm -f $(EVERYTHING)

ummakefile : makefile
	cp makefile ummakefile

