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

CMTDIR = ../../lib
CMTLIB = $(CMTDIR)/libcmt.a

# Definition of Compiler, Linker, and Flags
CC     = cc
CFLAGS = -c -g -I$(CMTDIR)
LN     = cc
BSDLIB = -lbsd
LFLAGS = $(CMTLIB) -lm $(BSDLIB)

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

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

EXGETOBJ = exget.o 

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

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

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

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

# clean objects for library
clean :
	rm -f $(EXGETOBJ)
	rm -f *.BAK *.CKP

recompile : clean
	rm -f $(EVERYTHING)

umakefile : makefile
	cp makefile umakefile

