################################################################################
# Makefile for BString class
# T.Barnaby, BEAM Ltd, 19/6/91
# updated by D.Korchagin, CERN AB-BI-SW, 2007-08-31
################################################################################
#
TOP = ../..
include ${TOP}/Makefile.config
CXXFLAGS := $(CXXFLAGS) -fPIC
LDLIBS = -lcurl -lpthread
OBJS = BRefData$(DARCH).o BBuffer$(DARCH).o BString$(DARCH).o BError$(DARCH).o BEntry$(DARCH).o BFile$(DARCH).o BDir$(DARCH).o
OBJS += BCond$(DARCH).o BCondInt$(DARCH).o BMutex$(DARCH).o BSema$(DARCH).o BThread$(DARCH).o BRWLock$(DARCH).o
OBJS += BUrl$(DARCH).o BRtc$(DARCH).o BTimer$(DARCH).o BPoll$(DARCH).o BSocket$(DARCH).o BEvent$(DARCH).o
OBJS += Boap$(DARCH).o BoapnsD$(DARCH).o BoapnsC$(DARCH).o
#OBJS += BObject$(DARCH).o
# TMS Cut-Down
LDLIBS = -lpthread
OBJS = BRefData$(DARCH).o BBuffer$(DARCH).o BString$(DARCH).o BError$(DARCH).o BEntry$(DARCH).o BFile$(DARCH).o BDir$(DARCH).o
OBJS += BCond$(DARCH).o BCondInt$(DARCH).o BMutex$(DARCH).o BSema$(DARCH).o BThread$(DARCH).o BRWLock$(DARCH).o
OBJS += BTimer$(DARCH).o BPoll$(DARCH).o BSocket$(DARCH).o BEvent$(DARCH).o
OBJS += Boap$(DARCH).o BoapnsD$(DARCH).o BoapnsC$(DARCH).o
# General
all: includes libBeam$(DARCH).a
-mkdir -p $(SRCLIBDIR)
cp $(CPFLAGS) libBeam$(DARCH).a $(SRCLIBDIR)/libBeam.a
includes:
-mkdir -p $(SRCINCDIR)/Beam
cp $(CPFLAGS) *.h $(SRCINCDIR)/Beam
install:
mkdir -p $(INCDIR)/Beam
cp *.h $(INCDIR)/Beam
mkdir -p $(LIBDIR)
# cp $(CPFLAGS) libBeam.so* $(LIBDIR)
cp $(CPFLAGS) libBeam$(DARCH).a $(LIBDIR)/libBeam.a
clean:
rm -f *$(DARCH).o *$(DARCH).a *.so *.so.*
update:
cp $(CPFLAGS) ../boapns/BoapnsC.* .
cp $(CPFLAGS) ../boapns/BoapnsD.* .
libBeam$(DARCH).a: $(OBJS)
rm -f libBeam$(DARCH).a
ar cq libBeam$(DARCH).a $(OBJS)
$(RANLIB) libBeam$(DARCH).a
libBeam.so: $(OBJS)
rm -f libBeam.so*
$(LINK.cc) -shared -Wl,-soname,libBeam.so.$(VERSION_H) -o libBeam.so.$(VERSION_H).$(VERSION_M).$(VERSION_L) $(OBJS) $(LDFLAGS) $(LDLIBS)
ln -sf libBeam.so.$(VERSION_H).$(VERSION_M).$(VERSION_L) libBeam.so.$(VERSION_H)
ln -sf libBeam.so.$(VERSION_H) libBeam.so