#
# Makefile for  Shifty Term, VT100 emulator for OS/2
#

CC 	= gcc -c
CFLAGS	= -Zmtd -O2 -g
LD	= gcc
LDFLAGS	= -s -Zmtd -Zmap

HDRS    = shifty.h screen.h

SRCS	= shifty.c screen.c queue.c \
	  serial.c telnet.c vt100emu.c \
	  local.c kermit.c xmodem.c capture.c

OBJS	= shifty.o screen.o queue.o \
	  serial.o telnet.o vt100emu.o \
	  local.o  kermit.o xmodem.o capture.o

LIBS	= -lsocket

#
# Inference Rules
#
.c.o:
	$(CC) $(CFLAGS) $*.c

#
# Load Module
#

shifty.exe: $(OBJS) shifty.def makefile
	$(LD) $(LDFLAGS) -o shifty.exe shifty.def $(OBJS) $(LIBS)

#
# Dependencies
#

shifty.o   : shifty.c shifty.h

serial.o   : serial.c shifty.h

telnet.o   : telnet.c shifty.h

screen.o   : screen.c screen.h shifty.h

vt100emu.o : vt100emu.c shifty.h screen.h

local.o    : local.c shifty.h

kermit.o   : kermit.c shifty.h

xmodem.o   : xmodem.c shifty.h

capture.o  : capture.c shifty.h
