# This Makefile is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 1.

# This is cool on Sun make
.KEEP_STATE:

# Set the following to pick up libXm and libX11 etc.
# if they're not already in /usr/lib
XLIB_DIRS = -L/inmos/TeleUSE/lib
#XLIB_DIRS = -L/inmos/openwin/lib -L/inmos/TeleUSE/lib

# Set the following to pick up Xm.h and X11.h etc.
# if they're not already in /usr/include
XINC_DIRS = -I/inmos/TeleUSE/include
#XINC_DIRS = -I/usr/openwin/include/ -I/inmos/TeleUSE/include

# next line if you have GCC
CC=gcc -g -O -finline-functions

# next if your compiler is acc
# CC=acc -g
# add -DHAVEBOOL if your compiler supports the boolean data type

#Shouldn't have to change below here
#######################################################################

OBJS = juggle.o x_uif.o x_graphics.o 3d.o animate.o jsleep.o siteswap.o
LIBS = -lXm -lX11 -lXt -lXmu -lXext -lXaw -lm

xj:   $(OBJS)
	$(CC) $(XLIB_DIRS) -o $@ $(OBJS) $(LIBS)

.c.o:
	$(CC) -c $< $(XINC_DIRS) -o $@


clean:
	rm -f xj *.o core

