I try to convert an .cc file to .e using code:
PROGNAME = c1.e
SOURCEFILES = c1.cc
OBJS = $(patsubst %.cc, %.o, $(SOURCEFILES))
ROOTCFLAGS := $(shell root-config --cflags)
ROOTLIBS := $(shell root-config --libs)
ROOTGLIBS := $(shell root-config --glibs)
LDFLAGS = -O
LIBS += $(ROOTLIBS)
CFLAGS += $(ROOTCFLAGS)
%.o: %.cc
g++ -Wall ${CFLAGS} -c -g -o $@ $<
$(PROGNAME): $(OBJS)
g++ -Wall -o $@ $(OBJS) $(LDFLAGS) $(LIBS) -lGeom
test:
@echo $(ROOTCFLAGS)
clean:
-rm -f ${PROGNAME} ${OBJS}
and this error was reported:
make -f GNUmakefile
g++ -Wall -o c1.e c1.o -O -L/usr/lib/x86_64-linux-gnu -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -pthread -lm -ldl -rdynamic -lGeom
/usr/bin/ld: cannot find -lGraf3d
/usr/bin/ld: cannot find -lPostscript
/usr/bin/ld: cannot find -lPhysics
collect2: error: ld returned 1 exit status
GNUmakefile:18: recipe for target ‘c1.e’ failed
make: *** [c1.e] Error 1
Up to now I used same code on my old computer and it was working excellent, but when I tray it on new one, I receive mentioned message.
Please can you help me?