Makefile 457 B

1234567891011121314151617181920212223
  1. CXX = g++
  2. MT = -D_MT_=8
  3. LINUX = -D_LINUX
  4. INCLUDE = -I. -I/HDRip/
  5. CXXFLAGS = -Wall -O3 $(MT) $(LINUX) -D_REENTRANT -fPIC
  6. LDLIBS = -lm
  7. TARGET_O = HDRip/all_processings.o HDRip/Conversion.o HDRip/ImageHDR.o HDRip/Utils.o HDRip/YCurve.o
  8. TARGET = HDRip.so
  9. all : $(TARGET)
  10. $(TARGET) : $(TARGET_O)
  11. $(CXX) -shared -Wl,-soname,$(TARGET) -o $(TARGET) $(TARGET_O)
  12. %.o : %.cpp
  13. $(CXX) $(CXXFLAGS) $(INCLUDE) -c $< -o $@
  14. clean :
  15. rm -f *~ $(TARGET_O) $(TARGET)