Added a first version of code for a library to fit data to any p(B) -- at the moment it is untested and subject to change...

This commit is contained in:
Bastian M. Wojek
2008-05-23 20:09:30 +00:00
parent badcc28f34
commit 728ec00816
12 changed files with 876 additions and 4 deletions

View File

@@ -0,0 +1,39 @@
CXX = g++
CXXFLAGS = -g -Wall -Wno-trigraphs -fPIC
LOCALINCLUDE = ../include/
INCLUDES = -I$(LOCALINCLUDE)
LD = g++
LDFLAGS = -g
SOFLAGS = -O -shared
# some definitions: headers (used to generate *Dict* stuff), sources, objects,...
OBJS =
OBJS += TTrimSPDataHandler.o
OBJS += TBofZCalc.o
OBJS += TPofBCalc.o
OBJS += TPofTCalc.o
OBJS += TFitPofB.o
SHLIB = libTFitPofB.so
# make the shared lib:
#
all: $(SHLIB)
$(SHLIB): $(OBJS)
@echo "---> Building shared library $(SHLIB) ..."
/bin/rm -f $(SHLIB)
$(LD) $(OBJS) $(EXTOBJS) $(SOFLAGS) -o $(SHLIB)
@echo "done"
# clean up: remove all object file (and core files)
# semicolon needed to tell make there is no source
# for this target!
#
clean:; @rm -f $(OBJS) *Dict* core*
@echo "---> removing $(OBJS)"
#
$(OBJS): %.o: %.cpp
$(CXX) $(INCLUDES) $(CXXFLAGS) -c $<