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

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

# 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 = exget

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

EXGETOBJ = exget.o 
CLEANOBJ = \#?.o \#?.dbg
RECOMP = exge?

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

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

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

exget : $(EXGETOBJ) $(CMTLIB)
	$(LN) $(EXGETOBJ) $(LFLAGS) 

almakefile : makefile
	copy makefile almakefile

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

purge : clean
	delete $(RECOMP)
