# AMIGA AZTEC C Makefile for mm, the MIDI Monitor
# Copyright 1989,1992 Carnegie Mellon University

CAMDDIR = :camd/include
CAMDLIB = :camd/lib/camd-aztec
CMTDIR = //lib
CMTLIB = $(CMTDIR)/cmt

# Definition of Compiler, Linker, and Flags
CC     = cc
CFLAGS = -bs -I$(CAMDDIR) -I$(CMTDIR)
LN     = ln 
LFLAGS = -g -l$(CMTLIB) -lm -lc 

# EVERYTHING is everything this makefile knows how to make (except aamakefile)
EVERYTHING = mm

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

MMOBJ = mm.o
CLEANOBJ = #?.o #?.dbg
RECOMP = m? ;wildcard to avoid error return

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

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

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

mm : $(MMOBJ) $(CMTLIB).lib
	$(LN) $(MMOBJ) $(LFLAGS) 

# clean objects for library
clean :
	delete $(CLEANOBJ)

purge : clean
	delete $(RECOMP)

aamakefile : makefile
	copy makefile aamakefile
