#
#	Makefile for soviewdemo and pickdemo
#


# Location of the forms library include files
FORMSINCL = /usr/staff/include

# Location of the forms library
FORMSLIB  = /usr/staff/lib

# In case you are using Version 3 or higher of the C++ compiler,
# you need to specify '-v2' as a compiler option, such that the
# compiler uses the C++ V2.x translator.  You need to do this
# because the Inventor V1.0.1 include files do not compile under C++ V3.x
C++FLAGS  = +p -v2 -I${FORMSINCL}

# Name of C++ compiler
C++	  = CC

LDFLAGS   = -s -L${FORMSLIB}
INVLIBS   = -lInventorGL -lInventor_s -lsphere -limage -lsun -lfont -lmalloc
LIBS	  = -lforms ${INVLIBS} -lfm_s -lgl_s -lm -lc_s
INCLUDE	  = soview.h
OBJS	  = soview.o 
EXE	  = soviewdemo pickdemo

all:	$(EXE)


.c++.o:
	${C++} -c ${C++FLAGS} $<

clean:
	rm -f *.o

empty:
	rm -f ${EXE}
	rm -f *.o

pickdemo:pickdemo.o soview.o
	${C++} pickdemo.o soview.o -o pickdemo ${LDFLAGS} ${LIBS}

soviewdemo: soviewdemo.o soview.o
	${C++} soviewdemo.o soview.o -o soviewdemo ${LDFLAGS} ${LIBS}
