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.

Makefile 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # src/gallium/state_trackers/vega/Makefile
  2. TOP = ../../../..
  3. include $(TOP)/configs/current
  4. VG_LIB = OpenVG
  5. VG_LIB_NAME = lib$(VG_LIB).so
  6. VG_MAJOR = 1
  7. VG_MINOR = 0
  8. VG_TINY = 0
  9. ### Lists of source files, included by Makefiles
  10. VG_SOURCES = \
  11. api_context.c \
  12. api_filters.c \
  13. api_images.c \
  14. api_masks.c \
  15. api_misc.c \
  16. api_paint.c \
  17. api_params.c \
  18. api_path.c \
  19. api_text.c \
  20. api_transform.c \
  21. vgu.c \
  22. vg_context.c \
  23. vg_state.c \
  24. vg_tracker.c \
  25. vg_translate.c \
  26. polygon.c \
  27. bezier.c \
  28. path.c \
  29. paint.c \
  30. arc.c \
  31. image.c \
  32. renderer.c \
  33. stroker.c \
  34. mask.c \
  35. shader.c \
  36. shaders_cache.c
  37. VG_OBJECTS = $(VG_SOURCES:.c=.o)
  38. VG_LIBS = $(GALLIUM_AUXILIARIES) -lm
  39. ### Include directories
  40. INCLUDE_DIRS = \
  41. -I$(TOP)/include \
  42. -I$(TOP)/src/gallium/include \
  43. -I$(TOP)/src/gallium/auxiliary
  44. .c.o:
  45. $(CC) -c $(INCLUDE_DIRS) $(DEFINES) $(CFLAGS) $< -o $@
  46. default: depend $(TOP)/$(LIB_DIR)/$(VG_LIB_NAME)
  47. # Make the OpenVG library
  48. $(TOP)/$(LIB_DIR)/$(VG_LIB_NAME): $(VG_OBJECTS) $(VG_LIBS)
  49. $(MKLIB) -o $(VG_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
  50. -major $(VG_MAJOR) \
  51. -minor $(VG_MINOR) \
  52. -patch $(VG_TINY) \
  53. -install $(TOP)/$(LIB_DIR) \
  54. $(VG_OBJECTS) $(VG_LIBS)
  55. ######################################################################
  56. # Generic stuff
  57. depend: $(VG_SOURCES)
  58. @ echo "running $(MKDEP)"
  59. @ rm -f depend # workaround oops on gutsy?!?
  60. @ touch depend
  61. @ $(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDE_DIRS) $(VG_SOURCES) \
  62. > /dev/null 2>/dev/null
  63. install: default
  64. $(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/include/VG
  65. $(INSTALL) -m 644 $(TOP)/include/VG/*.h $(DESTDIR)$(INSTALL_DIR)/include/VG
  66. $(INSTALL) -d $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)
  67. $(MINSTALL) $(TOP)/$(LIB_DIR)/libOpenVG* $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)
  68. # Emacs tags
  69. tags:
  70. etags `find . -name \*.[ch]` $(TOP)/include/VG/*.h
  71. clean:
  72. rm -f $(VG_OBJECTS)
  73. rm -f depend depend.bak
  74. sinclude depend