# 
# This makefile creates the superbreak demo and installs it into /usr/demos
#
include	${ROOT}/usr/include/make/commondefs
include ${PRODUCTDEFS}

IDBTAG = 	-idb "std.sw.demos"

LCINCS =	-I. -I../../include
LLDLIBS =	-lgl_s -lm
OPTIMIZER =	-O

TARGETS  =	superbreak
CFILES = break.c viewpos.c init.c drawwall.c shade.c look.c calcpos.c \
	ripple.c

default: ${TARGETS}

include ${COMMONRULES}

install: default
	${INSTALL} -F /usr/demos/bin -m 555 -u demos -g demos \
		${IDBTAG} ${TARGETS}
	${INSTALL} -F /usr/demos/graphics -m 555 -u demos -g demos \
		${IDBTAG} superbreak.info
	${INSTALL} -F /usr/demos/graphics -m 555 -u demos -g demos \
		${IDBTAG} -src superbreak.sh superbreak
	${INSTALL} -F /usr/demos -m 644 -u demos -g demos ${IDBTAG} \
		-src m_superbreak .m_old_superbreak

sales: install

${TARGETS}:	${OBJECTS}
	${CCF} ${OBJECTS} ${LDFLAGS} -o $@

# DO NOT DELETE THIS LINE -- make depend uses it
break.o: $(INCLDIR)/device.h $(INCLDIR)/gl.h $(INCLDIR)/math.h \
	 $(INCLDIR)/sgimath.h $(INCLDIR)/stdio.h $(INCLDIR)/values.h \
	 break.c break.h democolors.c
calcpos.o: $(INCLDIR)/device.h $(INCLDIR)/gl.h $(INCLDIR)/math.h \
	 $(INCLDIR)/sgimath.h $(INCLDIR)/stdio.h $(INCLDIR)/values.h \
	 break.h calcpos.c
drawwall.o: $(INCLDIR)/device.h $(INCLDIR)/gl.h $(INCLDIR)/math.h \
	 $(INCLDIR)/sgimath.h $(INCLDIR)/values.h break.h drawwall.c
init.o: $(INCLDIR)/device.h $(INCLDIR)/gl.h $(INCLDIR)/math.h \
	 $(INCLDIR)/sgimath.h $(INCLDIR)/stdio.h $(INCLDIR)/values.h \
	 break.h init.c
look.o: $(INCLDIR)/device.h $(INCLDIR)/gl.h $(INCLDIR)/math.h \
	 $(INCLDIR)/sgimath.h $(INCLDIR)/values.h break.h look.c
ripple.o: $(INCLDIR)/device.h $(INCLDIR)/gl.h $(INCLDIR)/math.h \
	 $(INCLDIR)/sgimath.h $(INCLDIR)/values.h break.h ripple.c
shade.o: $(INCLDIR)/device.h $(INCLDIR)/gl.h $(INCLDIR)/math.h \
	 $(INCLDIR)/sgimath.h $(INCLDIR)/values.h break.h shade.c
viewpos.o: $(INCLDIR)/device.h $(INCLDIR)/gl.h $(INCLDIR)/math.h \
	 $(INCLDIR)/sgimath.h $(INCLDIR)/values.h break.h viewpos.c
# DO NOT DELETE THIS 2nd LINE -- make depend uses it
