#
# @(#)Makefile.customer 1.5 97/11/05 SMI
#
# Copyright (c) 1997 by Sun Microsystems, Inc.
# All Rights Reserved
#
# Makefile for the test directory
#
# None of the files in this directory is to be released.
# This is for development only.
#

.KEEP_STATE:

ARCH:sh        = /usr/bin/uname -p
OGLHOME:sh     = echo ${OGLHOME:-/usr/openwin}
OPENWINHOME:sh = echo ${OPENWINHOME:-/usr/openwin}
CFLAGS         =  
CPPFLAGS      += -I$(OGLHOME)/include -I$(OPENWINHOME)/include
LDFLAGS        = -R$(OGLHOME)/lib:/usr/openwin/lib 
LDFLAGS       += -L$(OGLHOME)/lib -L$(OPENWINHOME)/lib -L../libcg
LDFLAGS       += -lGL -lGLU -lXmu -lX11 -lcg
TESTS          = ogl_cg_ex1
CGUTIL_LIB = ../libcg/libcg.so

default: $(TESTS)

$(CGUTIL_LIB):
	cd ../libcg; make

$(TESTS): $$@.o $(CGUTIL_LIB)
	$(LINK.c)  -o $@ $@.o 

clean:
	$(RM) $(TESTS) *.o core #*# *~
