# simple imakefile for xtoys
# first try the Makefile, but if that doesn't work
# for compilation type "xmkmf" and then "make"

LIBS = -lm -lX11

batch: xising xpotts xfires xsand xautomalab xwaves schrodinger

xising: xising.c
	$(CC) $(CFLAGS) $(LDOPTIONS) -o xising xising.c $(LIBS) 
	chmod 755 xising
xpotts: xpotts.c
	$(CC) $(CFLAGS) $(LDOPTIONS) -o xpotts xpotts.c $(LIBS)
	chmod 755 xpotts
xfires: xfires.c
	$(CC) $(CFLAGS) $(LDOPTIONS) -o xfires xfires.c $(LIBS)
	chmod 755 xfires
xsand: xsand.c
	$(CC) $(CFLAGS) $(LDOPTIONS) -o xsand xsand.c $(LIBS)
	chmod 755 xsand
xautomalab: xautomalab.c
	$(CC) $(CFLAGS) $(LDOPTIONS) -o xautomalab xautomalab.c $(LIBS)
	chmod 755 xautomalab
xwaves: xwaves.c
	$(CC) $(CFLAGS) $(LDOPTIONS) -o xwaves xwaves.c $(LIBS)
	chmod 755 xwaves
schrodinger: schrodinger.c
	$(CC) $(CFLAGS) $(LDOPTIONS) -o schrodinger schrodinger.c $(LIBS)
	chmod 755 schrodinger
