
########!smake

PROGRAM = test

LIBOBJS = CString.o Color.o GraphicalEnv.o Context.o PixelMap.o LEvent.o \
	GraphicalObject.o Form.o MenuBar.o CascadeButton.o TextButton.o\
	MainWindow.o ControlPanel.o PulldownMenu.o PictureButton.o\
	Label.o Dialog.o InputDialog.o PromptDialog.o FileDialog.o\
	OutputDialog.o RadioBox.o Scale.o CustomDialog.o TextField.o\
	SVTextField.o LTextField.o GLDrawingArea.o OptionMenu.o

OBJS = 	test.o Trackball.o

LC++INCS = -I.

# /usr/include/make/commondefs and /usr/include/make/commonrules
# define some useful Makefile rules.  For example, they
# defines a 'clean' target, so you can type 'make clean'
# to remove all .o files (or other files generated during
# compilation). See the file /usr/include/make/commonrules for
# documentation on what targets are supported.

include /usr/include/make/commondefs

TARGETS = $(PROGRAM)

# In IRIX 5.2, programs that directly make OpenGL and Inventor
# calls will not quickstart because OpenGL is machine-specific,
# and the version of OpenGL used when building Inventor will
# usually not match the version of OpenGL installed on your
# machine.  The LD_QUICKSTART_INFO line keeps the loader from
# complaining about this.
# See the "DSO" manual page for information on what quickstart is; see
# the "rqs" manual page for information on how to "re-quickstart"
# applications and libraries so that your Inventor applications will
# startup more quickly.
LD_QUICKSTART_INFO=

# Libraries to link with:


LLDLIBS  =  -lGUI -lGLw -lXm -lXt -lGLU -lGL -lX11 -lm -lInventorXt
CFLAGS   = -g -fullwarn -I../stl
LDFLAGS = -nostdlib -L. -L/lib -L/usr/lib $(LLDLIBS)

C++F = CC

default: $(TARGETS)

include $(COMMONRULES)

$(TARGETS): $(OBJS) libGUI.a
	$(C++F) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)

strtest: strtest.o CString.o
	$(C++F) $(CFLAGS) -o $@ strtest.o CString.o $(LDFLAGS)

libGUI.a: ${LIBOBJS}
	ar r $@ ${LIBOBJS}
	ranlib $@

.SUFFIXES: .cc .C

.cc.o:
	$(C++F) $(CFLAGS) -c $<

.C.o:
	$(C++F) $(CFLAGS) -c $<

