# Makefile for gcc/djgpp version 2.6.3
# tx is not particularly efficient when compiled with gcc
# because the go32 extender takes up a lot of dos memory
CC = gcc
CFLAGS = -O2 -Wall -Ic:/djgpp/include
LDFLAGS = -s
LIBS = -Lc:/djgpp/lib -lpc
AS = as
LINK = gcc 
STRIP = strip

all: tx.exe

OBJECTS =  \
  frame.o \
  tx.o \
  txcomm.o \
  txdir.o \
  txexpand.o \
  txmain.o \
  txmenu.o \
  txprompt.o

all: tx.exe

tx: $(OBJECTS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o tx $(OBJECTS) $(LIBS)

tx.exe: tx
	coff2exe tx

clean: 
	rm -f *.o

veryclean: 
	rm -f *.o
	rm -f tx tx.exe