HI ,
I make my .so object using the following make file. I want to compile with it “-lPhysics”.
What changes should I do to this make file.
— compiler configuration ---------------------------------
CC = g++
CCFLAGS = -O -Wall -fPIC -shared
INCLUDES = -I$(ROOTSYS)/include
— root libraries -------
ROOTSYS ?= ERROR_RootSysIsNotDefined
LD_LIBRARY_PATH:=$(ROOTSYS)/lib
ROOTCFLAGS = $(shell $(ROOTSYS)/bin/root-config --cflags)
ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --libs)
ROOTGLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs)
— packagename -----------
PACKAGE =Analyzer
#---------------------------------------------------------------
default : $(PACKAGE).so
$(PACKAGE)dict : $(PACKAGE).h
@echo "Making $@.C $@.h"
rm -f $@.C $@.h
rootcint $@.C -c $(INCLUDES) $(PACKAGE).h
$(PACKAGE).so : $(PACKAGE).C $(PACKAGE)dict
@echo “Compiling $<”
$(CC) -o $@ $(CCFLAGS) $(INCLUDES) $(PACKAGE)dict.C $(PACKAGE).C
clean :
@echo removing $(PACKAGE)dict.C $(PACKAGE)dict.h $(PACKAGE).so
rm $(PACKAGE)dict.C $(PACKAGE)dict.h $(PACKAGE).so
Thanks in advance,
with best regards,
sushil