#
# Note: you need the libXm motif library to compile this sample
#
#       Change the "LIB  =" definition according to the MOTIF location on
#       your system
#
ARCH   = linux
CCLIB  = ../../lib/$(ARCH)
CCPATH = ../../include
LIB    = /usr/X11R6/lib/libXm.a -L/usr/X11R6/lib -lXext -lXt -lX11 -lm
CC     = gcc -fwritable-strings -O
FILES  = $(CCLIB)/libsr.o $(CCLIB)/srexx.o

srexx2:  rx_add_on.o $(FILES) $(CCPATH)/srexx.h
	        $(CC) -o srexx2 rx_add_on.o $(FILES) -I$(CCPATH)  $(LIB)
	
rx_add_on.o:  rx_add_on.c $(CCPATH)/srexx.h
	        $(CC) -c rx_add_on.c -I$(CCPATH)

clean:
	        rm srexx2 rx_add_on.o
