# Makefile for exput, Amiga Aztec C version
# 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 = exput

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

EXPUTOBJ = exput.o 
CLEANOBJ = #?.o #?.dbg
RECOMP = exp?t ; wildcard to avoid error return

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

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

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

exput : $(EXPUTOBJ) $(CMTLIB).lib
	$(LN) $(EXPUTOBJ) $(LFLAGS) 

aamakefile : makefile
	copy makefile aamakefile

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

purge : clean
	delete $(RECOMP)
