#include "../config"
#define IHaveSubdirs
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

THISLIB = tape

#if TapeFortran
FORTRANSUBDIR = fderoute
#endif

SUBDIRS = tape clock deroute_pvm tapereader $(FORTRANSUBDIR)

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))

/* tape kernel routines */

OBJS1 = tape/calcul_coef_lin.o \
        tape/coeff.o\
        tape/compact.o \
        tape/correction.o \
        tape/date_absolue.o \
        tape/horloge_reference.o \
        tape/insert.o \
        tape/sauvegarde.o \
        tape/tape_start.o \
        tape/tse.o

/* pvm derouting routines */

OBJS2 = deroute_pvm/buffer1.o \
        deroute_pvm/buffer2.o \
        deroute_pvm/buffer3.o \
        deroute_pvm/control.o \
        deroute_pvm/group.o \
        deroute_pvm/inconnu.o \
        deroute_pvm/info.o \
        deroute_pvm/message.o \
        deroute_pvm/systeme.o \
        deroute_pvm/util.o

/* tape clock routine */

#ifdef RsArchitecture
SPECIALCLOCK = clock/RS/timer.o \
               clock/RS/second.o
#endif

OBJS3 = clock/tape_clock.o \
        $(SPECIALCLOCK)

/* combine everything into a single library */

OBJS = $(OBJS1) $(OBJS2) $(OBJS3)

NormalLibraryTarget($(THISLIB),$(OBJS))
InstallLibrary($(THISLIB),$(TAPELIBDIR))

depend::
