# Generated by makegen....
CC = gcc
INSTALLDIR = /usr/bin/X11

# Term stuff  ---------------------------------

# comment out the following 3 lines to enable term support
# edit this line to point to the directory of your term sources or
# your client.h and client.a.
#TERMDIR = /usr/src/term
#MISC_FLAGS = -DTERM -I$(TERMDIR)
#TERM_LIB = $(TERMDIR)/client.a

# Motif stuff ----------------------------------

# uncomment this for a smaller dynamic bin:
#MOTIF_LIB = -L/usr/X386/lib

# XPM stuff   ----------------------------------
# uncomment this and set the correct path to your lib for XPM support

XPM = -DXPM
XPMLIB = -lXpm
# where are your xpm icons? (used by 'make install' too)
XPMICONS = /usr/local/lib/xztalk

# this is the path to where your .au files reside and the default extension
# for example: AU_PATH = /usr/local/lib/sounds/*.au
AU_PATH = /root/mime/audio/*.au

TARGET = xztalk
OBJECTS = xztalk.o

CFLAGS = -s -O2  $(INCDIR) $(MISC_FLAGS) $(XPM) -DXPMPATH=\"$(XPMICONS)\" \
	-DAU_PATH=\"$(AU_PATH)\"

LIBS = $(MOTIF_LIB) -lXm -lXt -lX11 $(XPMLIB) -L. -lgsm-fast $(TERM_LIB) 

all: $(TARGET)

$(TARGET): $(OBJECTS)
	$(CC) $(CFLAGS) -o $(TARGET) $(OBJECTS) $(LIBDIR) $(LIBS)

clean:
	rm -f a.out core *~ \#* *.bak $(TARGET) $(OBJECTS)
install:
	install -s -m 655 $(TARGET) $(INSTALLDIR)
	mkdir $(XPMICONS)
	cp Xztalk.ad /usr/lib/X11/app-defaults
	cp *.xpm $(XPMICONS)
