#Imakefile for xlife

VERS=5.3

PROGRAMS	= xlife lifeconv

MANDIR		= $(MANSOURCEPATH)6
MANSUFFIX	= 6
XLIFEPATSDIR	= /usr/share/xlife
DEFINES		= -DLIFEDIR=\"$(XLIFEPATSDIR)\" -DVERSION=\"$(VERS)\"

SRCS1 =  \
	cell.c \
	data.c \
	file.c \
	geometry.c \
	generate.c \
	main.c \
	pattern.c \
	tile.c \
	save.c \
	utils.c \
	xcanvas.c

OBJS1 =  \
	cell.o \
	data.o \
	file.o \
	geometry.o \
	generate.o \
	main.o \
	pattern.o \
	tile.o \
	save.o \
	utils.o \
	xcanvas.o

SRCS2 = \
	lifeconv.c \
	lifecollect.c \
	data.c \
	file.c \
	geometry.c \
	generate.c \
	pattern.c \
	save.c \
	tile.c \
	utils.c

OBJS2 = \
	lifeconv.o \
	lifecollect.o \
	data.o \
	file.o \
	geometry.o \
	generate.o \
	pattern.o \
	save.o \
	tile.o \
	utils.o

AllTarget($(PROGRAMS))

ComplexProgramTarget_1(xlife, $(XLIB),)
ComplexProgramTarget_2(lifeconv,,)

# The help text is formatted to just fit in a 640x480 (VGA) window using a
# 9x16 font.  This is a useful property --- try to preserve it.
help.h: help.text
	sed <help.text -e '/\\[^n]/s//\\&/g' -e '/.*/s//"&",/' >help.h

TAGS: $(SRCS)
	etags $(SRCS)

clean::
	$(RM) xlife-$(VERS).tar.gz xlife.[0-9][0-9]

realclean: clean
	$(RM) TAGS
