#Imakefile for xlife 3.0

/* #define ManSuffix n /* For sites where administrators have messed with this */

PROGRAMS	= xlife oldpconv collect 

XLIFEPATSDIR	= /usr/games/lib/xlife

SRCS1 =  \
	button.c\
	cell.c\
	cellbox.c\
	data.c\
	expose.c\
	file.c\
	file_misc.c \
	generate.c\
	gentab.c\
	help.c\
	key.c\
	keyin.c\
	main.c\
	motion.c\
	resize.c\
	utils.c

OBJS1 =  \
	button.o\
	cell.o\
	cellbox.o\
	data.o\
	expose.o\
	file.o\
	file_misc.o \
	generate.o\
	gentab.o\
	help.o\
	key.o\
	keyin.o\
	main.o\
	motion.o\
	resize.o\
	utils.o

SRCS2 = \
	lifeconv.c

OBJS2 = \
	lifeconv.o

SRCS3 = \
	collect.c

OBJS3 = \
	collect.o

AllTarget($(PROGRAMS))

ComplexProgramTarget_1(xlife, $(XLIB),)
ComplexProgramTarget_2(lifeconv,,)
ComplexProgramTarget_3(collect,,)
NormalProgramTarget(oldpconv,oldpconv.o,,,)

install.patterns:
	@case '${MFLAGS}' in *[i]*) set +e;; esac; \
	for i in patterns//**/* ; do \
		(set -x; $(INSTALL) -c $(INSTDATFLAGS) $$i $(XLIFEPATSDIR)); \
	done
