config 790 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # config file for GNUmake
  2. # define to 1 to use OpenMP parallelization
  3. USE_OPENMP ?= 0
  4. # define to 1 to install shared library
  5. USE_SHARED ?= 0
  6. # define to 1 to use Altivec instructions
  7. USE_ALTIVEC ?= 0
  8. # define to 1 to use SSE2 instructions
  9. USE_SSE ?= 0
  10. # default flags
  11. CXXFLAGS ?= -O2 -Wall
  12. ifeq ($(USE_OPENMP),1)
  13. CPPFLAGS += -DSQUISH_USE_OPENMP
  14. CXXFLAGS += -fopenmp
  15. endif
  16. ifeq ($(USE_ALTIVEC),1)
  17. CPPFLAGS += -DSQUISH_USE_ALTIVEC=1
  18. CXXFLAGS += -maltivec
  19. endif
  20. ifeq ($(USE_SSE),1)
  21. CPPFLAGS += -DSQUISH_USE_SSE=2
  22. CXXFLAGS += -msse
  23. endif
  24. # install options
  25. INSTALL = install
  26. INSTALL_FILE = $(INSTALL) -p -m 644
  27. INSTALL_PROGRAM = $(INSTALL) -p -m 755
  28. INSTALL_DIRECTORY = $(INSTALL) -d -m 755
  29. # where should we install to
  30. INSTALL_DIR ?= /usr/local
  31. LIB_PATH ?= lib