# $Id: GNUmakefile,v 1.1 1999/01/07 16:05:40 gunter Exp $ # -------------------------------------------------------------- # GNUmakefile for examples module. Gabriele Cosmo, 06/04/98. # -------------------------------------------------------------- # CPPVERBOSE =1 G4LIB_BUILD_SHARED := G4WORKDIR := $(shell pwd) name := lightguide G4TARGET := $(name) G4EXLIB := true ifndef G4INSTALL G4INSTALL = ../../.. endif CPPFLAGS += $(shell $(ROOTSYS)/bin/root-config --cflags) -I/usr/include/c++/3.4.6/backward EXTRALIBS += $(shell $(ROOTSYS)/bin/root-config --glibs) libLG.so EXTRA_LINK_DEPENDENCIES := dict.cpp dict.o libLG.so .PHONY: all all: lib bin OBJS = $(G4TMPDIR)/TTrackerHit.o $(G4TMPDIR)/TLGEvent.o $(G4TMPDIR)/TTrackerTrack.o HEADERS = include/TTrackerHit.hpp include/TLGEvent.hpp include/TTrackerTrack.hpp dict.cpp: rootcint -f dict.cpp -c $(HEADERS) include/linkdef.h dict.o: g++ -fPIC `root-config --cflags` `root-config --glibs` -c dict.cpp libLG.so: g++ -shared -DFOR_ROOT `root-config --cflags` $(OBJS) dict.o `root-config --glibs` -o libLG.so myclean: rm -rf dict.* *.o *.so $(G4TMPDIR) $(G4BINDIR) include $(G4INSTALL)/config/binmake.gmk