#!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 = pagedb pagesimple 

LDIRT += $(TARGETS)

PFLIBS = -lpf_ogl -lpfdu_ogl -lpfs -lpfui -lpfutil_ogl
LCOPTS = -xansi -fullwarn -woff 835 -g
LLDLIBS = $(PFLIBS) -limage -lGLU -lGL -lXext -lX11 -lm -lfpe

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

all default: $(TARGETS)

include $(COMMONRULES)

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


