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

CAMDDIR = :camd/include
CAMDLIB = :camd/lib/camd.lib
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
EVERYTHING = conduct

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

CONDUCTOBJ  = conduct.o score.o iter.o  \
	 evt.o cevt.o match1.o sched2.o
CLEANOBJ = #?.o #?.dbg
RECOMP = cond?ct ; wildcard to avoid error return

MOXC = $(CMTDIR)/moxc.o 

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

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

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

conduct : $(CONDUCTOBJ) $(CMTLIB).lib
	$(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

aamakefile : makefile
	copy makefile aamakefile

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

purge : clean
	delete $(RECOMP)
