# simple makefile to compile xtoys

CC = cc
LIBS = -L/usr/X11R6/lib -lm -lX11

# If the X includes or libraries are not being found, fix this appropriately:
CFLAGS = -O -I/usr/openwin/include -L/usr/openwin/lib
# if you still have problems, try the included Imakefile with xmkmf

batch: xising xpotts xfires xsand xautomalab xwaves schrodinger

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

