Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # src/mesa/drivers/dri/Makefile
  2. TOP = ../../../..
  3. include $(TOP)/configs/current
  4. default: $(TOP)/$(LIB_DIR) subdirs dri.pc
  5. $(TOP)/$(LIB_DIR):
  6. -mkdir $(TOP)/$(LIB_DIR)
  7. subdirs:
  8. @for dir in $(DRI_DIRS) ; do \
  9. if [ -d $$dir ] ; then \
  10. (cd $$dir && $(MAKE)) || exit 1 ; \
  11. fi \
  12. done
  13. pcedit = sed \
  14. -e 's,@INSTALL_DIR@,$(INSTALL_DIR),' \
  15. -e 's,@INSTALL_LIB_DIR@,$(INSTALL_LIB_DIR),' \
  16. -e 's,@INSTALL_INC_DIR@,$(INSTALL_INC_DIR),' \
  17. -e 's,@VERSION@,$(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY),' \
  18. -e 's,@DRI_DRIVER_DIR@,$(DRI_DRIVER_INSTALL_DIR),' \
  19. -e 's,@DRI_PC_REQ_PRIV@,$(DRI_PC_REQ_PRIV),'
  20. dri.pc: dri.pc.in
  21. $(pcedit) $< > $@
  22. install: dri.pc
  23. @for dir in $(DRI_DIRS) ; do \
  24. if [ -d $$dir ] ; then \
  25. (cd $$dir && $(MAKE) install) || exit 1 ; \
  26. fi \
  27. done
  28. $(INSTALL) -d $(DESTDIR)$(INSTALL_INC_DIR)/GL/internal
  29. $(INSTALL) -m 0644 $(TOP)/include/GL/internal/dri_interface.h \
  30. $(DESTDIR)$(INSTALL_INC_DIR)/GL/internal
  31. $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)/pkgconfig
  32. $(INSTALL) -m 0644 dri.pc $(DESTDIR)$(INSTALL_LIB_DIR)/pkgconfig
  33. clean:
  34. -@for dir in $(DRI_DIRS) ; do \
  35. if [ -d $$dir ] ; then \
  36. (cd $$dir && $(MAKE) clean) ; \
  37. fi \
  38. done
  39. -rm -f common/*.o
  40. -rm -f *.pc