# Makefile for builds of Hamlet.  The variables in the preamble should
# be defined appropriately for your system.


# X11/Motif include paths and files

INCS	= -I/usr/openwin/include -I/usr/local/apps/dist/SUNWmotif/include


# X11/Motif library paths and files

LIBS	= -L/usr/local/apps/dist/SUNWmotif/lib \
          -L/usr/openwin/lib \
          -lXm -lXmu -lXt -lX11

# C++ compiler

CC	= g++


# Linker

LINKER	= g++



# Object files

OBJS	= hamlet.o comm.o server.o xdialog.o control.o


# Build executable

hamlet:		$(OBJS)
		$(LINKER) -o hamlet $(OBJS) $(LIBS)

# Build object files

$(OBJS):	
		rm -f $@
		$(CC) -c $*.C $(INCS)
	

# Clean up

clean:
	\rm -f hamlet *.o *.bak .~*


# Build dependencies

depend:
	makedepend -- $(CFLAGS) $(INCS) -- *.C

# DO NOT DELETE THIS LINE -- make depend depends on it.
