Newer
Older
TestStandRepository / Software / AttenuationScan / Makefile
@Federica Lionetto Federica Lionetto on 6 Nov 2014 714 bytes Add attenuation scan and find strip
  1. #
  2. CC=$(CXX)
  3. glib_cflags=$(shell pkg-config --cflags glib-2.0 gio-2.0)
  4. glib_libs=$(shell pkg-config --libs glib-2.0 gio-2.0)
  5.  
  6. ROOTC=$(shell root-config --cflags)
  7. ROOTL=$(shell root-config --libs)
  8. OPT=-g -fno-inline #-std=c++11
  9. CppFLAGS=$(OPT) -I. $(glib_cflags)
  10. CXXFLAGS=-fPIC $(CppFLAGS)
  11.  
  12. UNAME_S := $(shell uname -s)
  13. ifeq ($(UNAME_S),Linux)
  14. SO=so
  15. SO_FLAGS=-shared
  16. CXXFLAGS += -D LINUX
  17. endif
  18. ifeq ($(UNAME_S),Darwin)
  19. SO=dylib
  20. SO_FLAGS=-dynamiclib -undefined dynamic_lookup -install_name @rpath/$@
  21. CXXFLAGS += -D OSX
  22. endif
  23.  
  24. all: AttenuationScan
  25.  
  26. AttenuationScan: AttenuationScan.C
  27. c++ -I$(OPT) $(CXXFLAGS) $(ROOTC) -o $@ $^ $(LDLIBS) $(ROOTL) $(gliblibs)
  28.  
  29.  
  30. clean:
  31. rm -f *.o AttenuationScan
  32. rm -rf *.dSYM
  33.