# Makefile for sample programs

# $Id: Makefile,v 1.5 1995/08/01 20:59:49 brianp Exp $

# $Log: Makefile,v $
# Revision 1.5  1995/08/01  20:59:49  brianp
# use $(TK_LIB) and $(AUX_LIB), added nurb demo
#
# Revision 1.4  1995/05/01  15:25:51  brianp
# clean up and reorganize
#
# Revision 1.3  1995/03/30  22:30:56  brianp
# added new demos to PROGS
#
# Revision 1.2  1995/03/04  19:43:47  brianp
# updated for Make-config
#
# Revision 1.1  1995/03/03  14:35:18  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_INC = netinclude:
NET_LIB = netinclude:/netlib/net.lib

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

PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth \
	eval fog font line logo nurb oglinfo olympic \
	overlay point prim quad select shape \
	speed sphere star stencil stretch texture \
	tri wave

CC = sc
SCFLAGS = idir=$(NET_INC) idir=$(INCDIR) idir=$(XDIR)/include data=far idlen=63 \
          nostkchk ignore=a math=68882 cpu=68040 optimize 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)

