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

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

# Definition of Compiler, Linker, and Flags
CC     = lc
CFLAGS = -d -i$(CMTDIR) -i$(CAMDDIR) 
LN     = blink FROM lib:c.o
LFLAGS = ADDSYM LIB $(CMTLIB) lib:lcm.lib lib:lc.lib lib:amiga.lib

# EVERYTHING is everything this makefile knows how to make
EVERYTHING = conduct

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

CONDUCTOBJ  = conduct.o score.o iter.o  \
	 evt.o cevt.o match1.o sched2.o

MOXC = $(CMTDIR)/moxc.o 

CLEANOBJ = \#?.o \#?.dbg
RECOMP = condu?t

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

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

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

conduct : $(CONDUCTOBJ) $(CMTLIB)
	$(LN) $(CONDUCTOBJ) $(MOXC) $(LFLAGS) 

conduct.o : conduct.c
	$(CC) $(CFLAGS) conduct.c

score.o : score.c score.h

iter.o : iter.c iter.h

evt.o : evt.c evt.h

cevt.o : cevt.c cevt.h

match1.o : match1.c match.h

sched2.o : sched2.c sched.h

almakefile : makefile
	copy makefile almakefile

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

purge : clean
	delete $(RECOMP)

