XTRAPLIB = -lXETrap
DEPXTRAPLIB = $(TOP)/lib/Xtrap/libXETrap.a 
LOCAL_LIBRARIES = $(XTRAPLIB) $(EXTENSIONLIB) $(XTOOLLIB) $(XLIB)
        DEPLIBS = $(DEPXTRAPLIB) $(DEPEXTENSIONLIB) $(DEPXTOOLLIB) $(DEPXLIB)
          SRCS1 = xtrapinfo.c
          OBJS1 = xtrapinfo.o
          SRCS2 = xtrapout.c
          OBJS2 = xtrapout.o
          SRCS3 = xtrapreset.c
          OBJS3 = xtrapreset.o
          SRCS4 = xtrapstats.c
          OBJS4 = xtrapstats.o
          SRCS5 = xtrapin.c
          OBJS5 = xtrapin.o
          SRCS6 = xtrapproto.c
          OBJS6 = xtrapproto.o
          SRCS7 = xtrapchar.c
          OBJS7 = xtrapchar.o

      PROGRAMS = xtrapinfo xtrapout xtrapreset xtrapstats xtrapin \
                 xtrapproto xtrapchar
         SRCS  = $(SRCS1) $(SRCS2) $(SRCS3) $(SRCS4) $(SRCS5) $(SRCS6) $(SRCS7)
         OBJS  = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(OBJS6) $(OBJS7)

AllTarget($(PROGRAMS))

SingleProgramTarget(xtrapinfo,$(OBJS1),$(LOCAL_LIBRARIES),)
SingleProgramTarget(xtrapout,$(OBJS2),$(LOCAL_LIBRARIES),ExtraLibraries)
SingleProgramTarget(xtrapreset,$(OBJS3),$(LOCAL_LIBRARIES),)
SingleProgramTarget(xtrapstats,$(OBJS4),$(LOCAL_LIBRARIES),)
SingleProgramTarget(xtrapin,$(OBJS5),$(LOCAL_LIBRARIES),ExtraLibraries)
SingleProgramTarget(xtrapproto,$(OBJS6),$(LOCAL_LIBRARIES),ExtraLibraries)
SingleProgramTarget(xtrapchar,$(OBJS7),$(LOCAL_LIBRARIES),ExtraLibraries)

InstallProgramWithFlags(xtrapinfo,$(BINDIR),)
InstallProgramWithFlags(xtrapout,$(BINDIR),)
InstallProgramWithFlags(xtrapreset,$(BINDIR),)
InstallProgramWithFlags(xtrapstats,$(BINDIR),)
InstallProgramWithFlags(xtrapin,$(BINDIR),)
InstallProgramWithFlags(xtrapproto,$(BINDIR),)
InstallProgramWithFlags(xtrapchar,$(BINDIR),)

InstallManPage(xtrap,$(MANDIR))

DependTarget()
