#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
F77LIB= /usr/lib/libf2c.a
#endif

/* change the next 4 lines to suit your application */
LOCAL = ../..   /* location of the elle library code */
SRCS1=  resetnode.main.cc resetnode.elle.cc /* source files for your code */
OBJS1=  resetnode.main.o resetnode.elle.o /* object files for your code */
THISAPP1= resetnode                       /* the name of your executable */

SRCS2=  resetbnd.main.cc resetbnd.elle.cc /* source files for your code */
OBJS2=  resetbnd.main.o resetbnd.elle.o /* object files for your code */
THISAPP2= resetbnd                       /* the name of your executable */

SRCS = $(SRCS1) $(SRCS2)

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  = $(LOCAL)/bin
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)

.SUFFIXES: .cc .o
	NormalCplusplusObjectRule()

AllTarget($(THISAPP1))

NormalCplusplusProgramTarget($(THISAPP1),$(OBJS1),$(DEPLIBS),$(LOCAL_LIBRARIES),-lm)

InstallProgram($(THISAPP1),$(BINDIR))

AllTarget($(THISAPP2))

NormalCplusplusProgramTarget($(THISAPP2),$(OBJS2),$(DEPLIBS),$(LOCAL_LIBRARIES),-lm)

InstallProgram($(THISAPP2),$(BINDIR))

DependTarget()
DependTarget()
