#!smake

# note: if $ROOT is set,
#   this will compile and link with header files (e.g. GL/gl.h) and
#   libraries (e.g. libGL.so) under $ROOT.
#   $ROOT/usr/lib/libGL.so should be linked to a libGL.so of a specific product.
#   to be compatible with the tree, probably $TOOLROOT should also be set.

include $(ROOT)/usr/include/make/commondefs

# for targets with explicit rules
TARGETS = videotex videoblend videomip

LDIRT += $(TARGETS)

LCOPTS=-xansi -fullwarn -woff 835 -g
GLLIBS= -lGLU -lGL -lXext -lX11 -lm

#if defined(BUILD_DEBUG)
OPTIMIZER = -g
#endif

all default: $(TARGETS)

include $(COMMONRULES)

$(TARGETS): $$@.o
	$(CCF) -o $@ -prototypes $@.o $(LDFLAGS) $(GLLIBS) -lmalloc -lvl


