#ifndef MotifDefines
#ifdef SGIArchitecture
#define XpmTop /usr
#endif
#include <Motif.tmpl>
#endif

#ifdef AlphaArchitecture
CXX = g++
#undef CCsuf
#define CCsuf cc
#endif

F77LIB= -lfor
#ifdef LinuxArchitecture
F77LIB= -lf2c
#ifdef __powerpc__
F77LIB= -lg2c
#endif
#endif

/* change the next 4 lines to suit your application */
LOCAL = /usr/local/elle   /* location of the elle library code */
SRCS=  nodes.main.cc nodes.elle.cc /* source files for your code */
OBJS=  nodes.main.o nodes.elle.o /* object files for your code */
THISAPP= elle_nodes                       /* the name of your executable */

BSRCD = $(LOCAL)/basecode
PSRCD = $(LOCAL)/plotcode
SSRCD = $(LOCAL)/statscode
CSRCD = $(LOCAL)/utilities/gpc222
MSRCD = $(LOCAL)/utilities/matrix
B_OPTIONS  = -I$(BSRCD)
P_OPTIONS  = -I$(PSRCD)
S_OPTIONS  = -I$(SSRCD)
C_OPTIONS  = -I$(CSRCD)
M_OPTIONS  = -I$(MSRCD)
BINDIR  = .
LIBDIR  = $(LOCAL)/lib
PLOTLIB  = -lplot
ELLELIB  = -lelle
CLIPLIB  = -lclip
MATRLIB  = -lmatrix
DEPPLOTLIB  = $(LIBDIR)/libplot.a
DEPELLELIB  = $(LIBDIR)/libelle.a
DEPCLIPLIB  = $(LIBDIR)/libclip.a
DEPMATRLIB  = $(LIBDIR)/libmatrix.a

EXTRA_LOAD_FLAGS = -L$(LOCAL)/lib
LOCAL_LIBRARIES = $(PLOTLIB) $(ELLELIB) $(MATRLIB) $(XMLIB) $(XTOOLLIB) $(XLIB)
DEPLIBS = $(DEPPLOTLIB) $(DEPELLELIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB)
DEFINES= -DXSYB
INCLUDES= $(B_OPTIONS) $(P_OPTIONS) $(S_OPTIONS) $(M_OPTIONS)

AllTarget($(THISAPP))

.SUFFIXES: .cc .o
	NormalCplusplusObjectRule()


NormalCplusplusProgramTarget($(THISAPP),$(OBJS),$(DEPLIBS),$(LOCAL_LIBRARIES),-lm)

InstallProgram($(THISAPP),$(BINDIR))

DependTarget()
