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

#include "../../../elle.tmpl"

/*
 * sybfile.c arrays.c *.f
 * sybfile.h arrays.h data.h
 * are copies of the basil/sybilsrc files
 * - separate copies as basil may not always be on a system
 */
SRCS=  elle2poly.cc basil2elle.cc flags.cc c_funcs.cc\
       arrays.c parseopts.c\
       bndlist.cc\
       $(PSRCD)/string_utils.c \
       sybfile.c strain.f dncom.f polygonavg.f lgdef.f

EPOBJS=  elle2poly.o flags.o bndlist.o string_utils.o

BEOBJS=  basil2elle.o\
         arrays.o parseopts.o string_utils.o c_funcs.o\
         sybfile.o strain.o dncom.o polygonavg.o lgdef.o

EXTRA_LOAD_FLAGS = -L$(TOP)/lib
DFLAGS= -DFLYNN_VER
DEFINES= $(DFLAGS)

.SUFFIXES:
.SUFFIXES: .cc .c .f .o

.cc.o:
	ObjectCplusplusCompile($(DFLAGS))

AllTarget(elle2poly)

SpecialRenameObjectRule(string_utils.o,$(PSRCD)/string_utils.c,$(_NOOP_))

NormalCplusplusProgramTarget(elle2poly,$(EPOBJS),$(DEPLIBS_B),$(LOCAL_LIBRARIES_B) $(CLIPLIB),-lm) 

InstallProgram(elle2poly,$(BINDIR))

AllTarget(basil2elle)

NormalCplusplusProgramTarget(basil2elle,$(BEOBJS),$(DEPLIBS_B),$(LOCAL_LIBRARIES_B),-lm $(F77LIB))

InstallProgram(basil2elle,$(BINDIR))

CleanMakefile()

DependTarget()
