Clone of mesa.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Makefile.ugl 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # Mesa 3-D graphics library
  2. # Version: 3.5
  3. #
  4. # Copyright (C) 2001 Wind River Systems, Inc
  5. # The MIT License
  6. # Permission is hereby granted, free of charge, to any person obtaining a
  7. # copy of this software and associated documentation files (the "Software"),
  8. # to deal in the Software without restriction, including without limitation
  9. # the rights to use, copy, modify, merge, publish, distribute, sublicense,
  10. # and/or sell copies of the Software, and to permit persons to whom the
  11. # Software is furnished to do so, subject to the following conditions:
  12. #
  13. # The above copyright notice and this permission notice shall be included
  14. # in all copies or substantial portions of the Software.
  15. #
  16. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  17. # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  19. # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  20. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  21. # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  22. # DEALINGS IN THE SOFTWARE.
  23. # Makefile for UGL/Mesa demos
  24. DEMO_SOURCES = readtex.c uglaccum.c uglalldemos.c uglbounce.c uglcube.c \
  25. ugldrawpix.c uglflip.c uglgears.c uglicotorus.c uglline.c uglolympic.c \
  26. uglpoint.c uglstencil.c uglteapot.c ugltexcube.c ugltexcyl.c
  27. #win2d3d/winRoot.c win2d3d/winBall.c win2d3d/winPuzzle.c win2d3d/winHello.c \
  28. #win2d3d/winImage.c win2d3d/winGears.c
  29. DEMO_OBJECTS = $(DEMO_SOURCES:.c=.o)
  30. SOURCES = $(DEMO_SOURCES)
  31. include ../rules.windml
  32. ##### TARGETS #####
  33. all: depend.$(CPU)$(TOOL) $(DEMO_OBJECTS)
  34. depend.$(CPU)$(TOOL):
  35. ifeq ($(WIND_HOST_TYPE),x86-win32)
  36. @ $(RM) $@
  37. @ $(ECHO) Creating depend.$(CPU)$(TOOL)
  38. ifneq ($(SOURCES),)
  39. @ for %f in ($(SOURCES)) do \
  40. $(CC) -MM $(CFLAGS) %f >>$@
  41. endif
  42. else
  43. Makefile
  44. @ $(RM) $@
  45. @ $(ECHO) "Creating depend.$(CPU)$(TOOL)"
  46. ifneq ($(SOURCES),)
  47. @ for FILE in $(filter-out $(NODEPENDOBJS), $(SOURCES)); \
  48. do \
  49. $(CC) -MM $(CFLAGS) $$FILE \
  50. | $(TCL) $(BIN_DIR)/depend.tcl $(TGT_DIR) >>$@; \
  51. done
  52. endif
  53. endif
  54. .PHONY = clean
  55. clean:
  56. $(RM) $(DEMO_OBJECTS)
  57. $(RM) depend.$(CPU)$(TOOL)