# Makefile for book programs


# $Id: Makefile,v 1.4 1995/08/01 20:59:05 brianp Exp $

# $Log: Makefile,v $
# Revision 1.4  1995/08/01  20:59:05  brianp
# cleaned up, use $(xx_LIB) variable
#
# Revision 1.3  1995/03/13  16:04:47  brianp
# added xfont to PROGS
#
# Revision 1.2  1995/03/04  19:43:29  brianp
# updated for Make-config
#
# Revision 1.1  1995/03/03  14:38:09  brianp
# Initial revision
#


##### MACROS #####

INCDIR = /include
GL_LIB = MesaGL.LIB
GLU_LIB = MesaGLU.LIB
TK_LIB = Mesatk.LIB
AUX_LIB = Mesaaux.LIB
XLIBS = X11.LIB
XDIR = x11:sasc

NET_INCLUDE = netinclude:
NET_LIB = netinclude:/netlib/net.lib

GL_LIBS = lib lib:sc.lib+lib:scm881.lib+$(XDIR)/lib/$(XLIBS)+/lib/$(AUX_LIB)+/lib/$(TK_LIB)+/lib/$(GLU_LIB)+/lib/$(GL_LIB)

# Removed accpersp and dof 
# since problem with near/far variables being confused with SAS/C internal data types.
PROGS = accanti accnot accum aim alpha alpha3D \
	anti antiindex antipindex antipoint antipoly \
	bezcurve bezmesh bezsurf checker checker2 \
	chess clip colormat cone cube curve \
	depthcue disk dofnot double drawf \
	feedback fog fogindex font light linelist \
	lines list list2 maplight material mipmap \
	model movelight nurbs pickdepth pickline \
	picksquare plane planet planetup polys \
	robot sccolorlight scene scenebamb sceneflat \
	select simple smooth sphere stencil stroke \
	surface tea teaambient teapots texgen texturesurf xfont

CC = sc
SCFLAGS = idir=$(INCDIR) idir=$(XDIR)/include data=far idlen=63 \
          nostkchk ignore=a optimize math=68882 cpu=68040 define=AMIWIN


##### RULES #####

##### TARGETS ######

default: 
	@echo "Specify a target configuration"

$(PROGS):
	$(CC) $(SCFLAGS) $(GL_LIBS) link $>.c

clean:
	-delete *.o *.lnk *.info

realclean: 
	-delete $(PROGS)
	-delete *.o *.lnk *.info

targets: $(PROGS)
