patch-hdmi-cec_Makefile 802 B

1234567891011121314151617181920212223242526
  1. --- imx-lib-3.10.17-1.0.0.orig/hdmi-cec/Makefile 2014-01-16 15:27:12.000000000 +0100
  2. +++ imx-lib-3.10.17-1.0.0/hdmi-cec/Makefile 2014-08-27 08:38:14.339600710 +0200
  3. @@ -21,18 +21,18 @@ 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 hdmi-cec.h $(DEST_DIR)/usr/include
  13. + @mkdir -p $(DESTDIR)/usr/include
  14. + cp hdmi-cec.h $(DESTDIR)/usr/include
  15. else
  16. all install :
  17. endif
  18. %.o: %.c
  19. - $(CC) -D$(PLATFORM) -Wall -O2 -fPIC -c $^ -o $@
  20. + $(CC) -D$(PLATFORM) $(CFLAGS) -fPIC -c $^ -o $@
  21. $(LIBNAME).so.$(SONAMEVERSION): $(OBJ)
  22. $(CC) -shared -nostartfiles -Wl,-soname,$@ $^ -o $@