patch-vpu_Makefile 1012 B

1234567891011121314151617181920212223242526272829303132
  1. --- imx-vpu-3.10.17-1.0.0.orig/vpu/Makefile 2014-01-16 15:27:33.000000000 +0100
  2. +++ imx-vpu-3.10.17-1.0.0/vpu/Makefile 2015-10-08 18:46:28.302097835 +0200
  3. @@ -21,22 +21,22 @@ endif
  4. all: $(LIBNAME).so $(LIBNAME).a
  5. install: install_headers
  6. - @mkdir -p $(DEST_DIR)/usr/lib
  7. - cp -P $(LIBNAME).* $(DEST_DIR)/usr/lib
  8. + @mkdir -p $(DESTDIR)/usr/lib
  9. + cp -P $(LIBNAME).* $(DESTDIR)/usr/lib
  10. install_headers:
  11. - @mkdir -p $(DEST_DIR)/usr/include
  12. - cp vpu_lib.h $(DEST_DIR)/usr/include
  13. - cp vpu_io.h $(DEST_DIR)/usr/include
  14. + @mkdir -p $(DESTDIR)/usr/include
  15. + cp vpu_lib.h $(DESTDIR)/usr/include
  16. + cp vpu_io.h $(DESTDIR)/usr/include
  17. else
  18. all install :
  19. endif
  20. %.o: %.c
  21. - $(CC) -D$(PLATFORM) -Wall -O2 -fPIC -c $^ -o $@
  22. + $(CC) -D$(PLATFORM) $(CFLAGS) -fPIC -c $^ -o $@
  23. $(LIBNAME).so.$(SONAMEVERSION): $(OBJ)
  24. - $(CC) -shared -nostartfiles -Wl,-soname,$@ $^ -o $@ -lpthread
  25. + $(CC) $(CFLAGS) -shared -nostartfiles -Wl,-soname,$@ $^ -o $@ -lpthread
  26. $(LIBNAME).so: $(LIBNAME).so.$(SONAMEVERSION)
  27. ln -s $< $@