File xmp-Makefile.diff of Package libXMP4_4

--- /dev/null	2009-02-23 19:06:18.000000000 +0100
+++ XMP-Toolkit-SDK-4.4.2/build/Makefile	2009-03-24 11:13:19.000000000 +0100
@@ -0,0 +1,62 @@
+TARGET = libXMP.so.4.4.2
+SONAME = libXMP.so.4.4
+SHLIB = libXMP.so
+
+OBJS = $(shell ls ../source/*/*.cpp ../source/*/*/*.cpp ../third-party/MD5/*.cpp | sed 's/\.cpp/.o/g')
+
+CXX = g++
+RPM_OPT_FLAGS = -O2 -Wall 
+CXXFLAGS = $(RPM_OPT_FLAGS) -fPIC
+CXXFLAGS += -I ../public/include -I . -I ../source/common/ -I ../third-party/MD5 -I ../source/XMPFiles/FormatSupport -I ../source/XMPFiles
+CXXFLAGS += -Winvalid-pch -finput-charset=utf-8 -Wno-attributes -fno-strict-aliasing -DqWinOS=0 -DqMacOS=0 -DqLinOS=1 -DqDNGLittleEndian=1 -DqDNGUseStdInt=1 -DUNIX_ENV=1 -DDISABLE_CALIBR
+CXXFLAGS += -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64
+#LDFLAGS = -shared
+LIBS = -lexpat -lz
+#LIBS += -lxml2
+
+DESTDIR = 
+PREFIX = /usr/local
+LIBDIR = $(shell ls -d $(PREFIX)/lib64 || ls -d $(PREFIX)/lib || echo $(PREFIX)/lib)
+INCDIR = $(PREFIX)/include/xmp_sdk
+
+%.o: %.cpp
+	$(CXX) $(CXXFLAGS) -c $< -o $@
+
+$(TARGET): $(OBJS)
+	$(CXX) $(LDFLAGS) -shared -o $(TARGET) -Wl,-soname,$(SONAME) $(OBJS) $(LIBS)
+	ln -sf $(TARGET) $(SONAME)
+	ln -sf $(SONAME) $(SHLIB)
+
+clean:
+	rm -f $(OBJS) $(SHLIB) $(SONAME) $(TARGET) a.out core
+	
+debug_libdir:
+	@echo $(LIBDIR)
+
+install-libs:
+	mkdir -p $(DESTDIR)$(LIBDIR)
+	install -m 0755 $(TARGET) $(DESTDIR)$(LIBDIR)
+	ln -sf $(TARGET) $(DESTDIR)$(LIBDIR)/$(SONAME)
+	ln -sf $(SONAME) $(DESTDIR)$(LIBDIR)/$(SHLIB)
+
+install-headers:
+	rm -rf $(DESTDIR)$(INCDIR)
+	mkdir -p $(DESTDIR)$(INCDIR)
+	install -m 0644 *.h ../public/include/*.* $(DESTDIR)$(INCDIR)
+	mkdir -p $(DESTDIR)$(INCDIR)/client-glue
+	install -m 0644 ../public/include/client-glue/* $(DESTDIR)$(INCDIR)/client-glue/
+
+install-extra-headers:
+	mkdir -p $(DESTDIR)$(INCDIR)/common
+	install -m0644 ../source/common/*.hpp ../source/common/*.incl_cpp $(DESTDIR)$(INCDIR)/common/
+	mkdir -p $(DESTDIR)$(INCDIR)/MD5
+	install -m 0644 ../third-party/MD5/*.h $(DESTDIR)$(INCDIR)/MD5/
+	mkdir -p $(DESTDIR)$(INCDIR)/XMPFiles
+	install -m 0644 ../source/XMPFiles/*.hpp $(DESTDIR)$(INCDIR)/XMPFiles/
+	mkdir -p $(DESTDIR)$(INCDIR)/XMPFiles/FormatSupport
+	install -m 0644 ../source/XMPFiles/FormatSupport/*.hpp $(DESTDIR)$(INCDIR)/XMPFiles/FormatSupport/
+
+install: install-libs install-headers
+
+
+