XCOMM =====================================================================
XCOMM   Imakefile - xmemory v3.6 - Helmut.Hoenig@hub.de - July 3, 1996
XCOMM =====================================================================

XCOMM Default font pattern to be used when creating letter or smiley tiles

       FONT_DEFAULT = \"-bitstream-charter-bold-r-*\"

XCOMM where to search for data-files, when not found in current dir

         XMEMORYDIR = \"/usr/games/lib/xmemory\"

XCOMM set the compiler that you like,
XCOMM gcc should suit, since the libraries are not needed.

                CXX = gcc

XCOMM #######################################################################

               SRCS = board.C color.C font.C port.C tile.C xmemory.C \
                      gif_image.C color_mapper.C mem_image.C

    LOCAL_LIBRARIES = $(XLIB)

               OBJS = board.o color.o font.o port.o tile.o xmemory.o \
                      gif_image.o color_mapper.o mem_image.o

xmemory: $(OBJS) $(DEPLIBS)
	$(RM) $@
	$(CXX) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)

InstallProgram(xmemory,$(BINDIR))
InstallManPage(xmemory,$(MANDIR))
DependTarget()
CleanTarget()


xmemory.o:
	$(CXX) $(CXXFLAGS) -DDATA_DIRECTORY=$(XMEMORYDIR) -DFONT_DEFAULT=$(FONT_DEFAULT) -c xmemory.C -o $@

.C.o:
	$(CXX) $(CXXFLAGS) -c $< -o $@
