Newer
Older
TestStandRepository / Software / PulseShapevsV / Makefile
@Federica Lionetto Federica Lionetto on 20 Nov 2014 707 bytes Added PulseShapevsV
  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.  
  13. UNAME_S := $(shell uname -s)
  14. ifeq ($(UNAME_S),Linux)
  15. SO=so
  16. SO_FLAGS=-shared
  17. CXXFLAGS += -D LINUX
  18. endif
  19. ifeq ($(UNAME_S),Darwin)
  20. SO=dylib
  21. SO_FLAGS=-dynamiclib -undefined dynamic_lookup -install_name @rpath/$@
  22. CXXFLAGS += -D OSX
  23. endif
  24.  
  25. all: PulseShapevsV
  26.  
  27. PulseShapevsV: PulseShapevsV.C
  28. c++ -I$(OPT) $(CXXFLAGS) $(ROOTC) -o $@ $^ $(LDLIBS) $(ROOTL) $(gliblibs)
  29.  
  30.  
  31. clean:
  32. rm -f *.o PulseShapevsV
  33. rm -rf *.dSYM
  34.