# Makefile for the Silly X Protocol Compressor
# Rob Ryan (robr@cmu.edu)
# You will need to edit this makefile or give make a command line
# argument to tell it where to find your X include files.
# For example if the X include files are in /usr/local/include/X11
# you would add INCLUDES=-I/usr/local/include on the command
# line or in this file.
# To use the packet compression code from term 1.07:
# cd <your term source directory>
# make compress.o
# (if it fails you may need to edit the Makefile)
# cd <your sxpc source directory>
# make INCLUDES=-I<where your X11/* files are installed> DEFINES=-DTERMCOMPRESS COBJ=<your term source directory>/compress.o

INCLUDES=-I/usr/include/X11

DEFINES=-DTERMCOMPRESS
CFLAGS= $(INCLUDES) $(DEFINES)
OBJS= sxpc.o compress.o

# For generic BSD systems  (IBM RT, Decstation)
sxpc: $(OBJS)
	$(CC) -o sxpc $(OBJS)

# for RS/6000
#sxpc: sxpc.c $(COBJ)
#	cc -D_BSD $(INCLUDES) $(DEFINES) -o sxpc sxpc.c $(COBJ) -lbsd

# for HP
#sxpc: sxpc.c $(COBJ)
#	 c89 -D_HPUX_SOURCE $(INCLUDES)  $(DEFINES) -o sxpc sxpc.c $(COBJ)

clean:
	/bin/rm -f sxpc sxpc.o
