# Makefile for ogftp.
# Asher Hoskins, 25/4/96

# Operating System (SUN/SGI/LINUX/OS2):
OPSYS = LINUX

# Default serial port:
# ("/dev/ttya" for Sun386i, "/dev/cua1" for Linux, "/dev/ttyd1" or
# "/dev/ttyd2" for an SGI Indy)
DEF_PORT = "/dev/cua1"

# Default serial port speed:
DEF_SPEED = 19200

# C compiler:
CC = gcc

# C flags:
CFLAGS = -O2 -D$(OPSYS) '-DDEFAULT_PORT=$(DEF_PORT)' -DDEFAULT_SPEED=$(DEF_SPEED)

# Object files:
OBJ = ogftp.o open.o reply.o transfer.o

# Make main version:
all: ogftp

ogftp: $(OBJ)
	$(CC) $(CFLAGS) -o ogftp $(OBJ)

# Header file dependencies:
ogftp.o: reply.h transfer.h open.h
transfer.o: reply.h

# Make clean (remove object files and core dumps)
clean:
	rm -f *.o core

# Make bare (remove executable as well)
bare:
	rm -f *.o core ogftp

