# This Makefile is for adt -- AmiNet Download Tool
# History:
#  -- v1.0: Initial version.
#           By Urban D. Mueller (umueller@amiga.physik.unizh.ch)
#  -- v1.1: Bug fixes.
#           By Urban D. Mueller (umueller@amiga.physik.unizh.ch)
#  -- v1.2: FTP made part of adt (No longer extrnal)
#           By Fishman M. Shmuel [FMS] (fms@ccgr.technion.ac.il)

# Modify the following for your version of Unix (TM)
#
# CC: Your C compiler.
# CFLAGS: The C compiler's flags.
# LIBS: libraries to link to.
#
# Some presets follow:

# Make sure that your C compiler can grok ANSI C
# CC = gcc
CC = cc

# Use the following on HPUX 8.0 (Better optimization)
# CFLAGS = +O3
# LIBS = -lcurses -ltermcap

# Use the following for Amiga Unix (maybe other SVR4 as well, not tested)
# CFLAGS = -O -DSYSV
# LIBS = -lcurses -lsocket -lucb -lnsl

# Use the following on Ultrix 4.*:
# CFLAGS = -O
# LIBS = -lcursesX

# Use the following for all other platforms:
CFLAGS = -O
LIBS = -lcurses -ltermcap

################################################
#    DO NOT MODIFY ANYTHING AFTER THIS LINE    #
################################################

FMT = nroff
OBJ = adt.o ftp.o curses.o help.o
MAN = adt.1

RM=rm

adt: $(OBJ)
	$(CC) -o adt $(OBJ) $(LIBS)

man: adt.man

adt.man: $(MAN)
	$(FMT) -man $(MAN) > adt.man

all: adt man

clean:
	-$(RM) -f adt adt.man core TAGS
	-$(RM) -f *~ *.o #*#

adt.o: adt.c adt.h
curses.o: curses.c adt.h version.h
help.o: help.c adt.h
ftp.o: ftp.c
