File dng4ps2-Makefile.diff of Package dng4ps2

Index: dng4ps2-r62/src/Makefile
===================================================================
--- /dev/null
+++ dng4ps2-r62/src/Makefile
@@ -0,0 +1,38 @@
+# Makefile for DNG4PS-2
+TARGET = dng4ps2
+CC = gcc
+CXX = g++
+
+RPM_OPT_FLAGS = -O2 -Wall
+CXXFLAGS = $(RPM_OPT_FLAGS)
+CXXFLAGS += $(shell wx-config --cflags)
+CXXFLAGS += -I /usr/include/dng_sdk
+CXXFLAGS += -Winvalid-pch -finput-charset=utf-8 -Wno-attributes -fno-strict-aliasing -DWX_PRECOMP -DwxUSE_UNICODE -DqWinOS=0 -DqMacOS=0 -DqLinOS=1 -DqDNGUseStdInt=1 -DqDNGLittleEndian=1 -DUNIX_ENV=1 -DDISABLE_CALIBR
+CXXFLAGS += -I /usr/include/libexif
+
+OBJS = AboutDialog.o FileList.o  ProcessDialog.o CamCalibrFrame.o  FilesPathDialog.o  ProgramObjects.o CameraOpts.o  NewFolderDialog.o  ScanProgressWin.o DNG4PSApp.o Options.o Utils.o DNG4PSMain.o OptionsDialog.o
+
+LDFLAGS =
+LIBS = -lexif
+LIBS += $(shell wx-config --libs)
+LIBS += -ldng
+#LIBS += -lXMP
+
+PREFIX = /usr/local
+
+default: $(TARGET)
+
+%.o: %..cpp *.h
+	$(CXX) $(CXXFLAGS) -c $<
+
+$(TARGET): $(OBJS)
+	$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+clean:
+	rm -f $(OBJS) $(TARGET) core a.out
+
+install:
+	mkdir -p $(DESTDIR)$(PREFIX)/bin
+	install -m 0755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/
+
+