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 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. TOP = ../..
  2. include $(TOP)/configs/current
  3. INCDIR = $(TOP)/include
  4. LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLEW_LIB) \
  5. -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
  6. # using : to avoid APP_CC pointing to CC loop
  7. CC := $(APP_CC)
  8. CFLAGS := -I$(INCDIR) $(CFLAGS)
  9. LDLIBS = $(LIBS)
  10. SOURCES = \
  11. glm.c \
  12. glmdraw.c \
  13. objview.c \
  14. trackball.c \
  15. skybox.c \
  16. readtex.c \
  17. shaderutil.c
  18. HEADERS = \
  19. extfuncs.h \
  20. readtex.h \
  21. shaderutil.h \
  22. trackball.h
  23. OBJS = $(SOURCES:.c=.o)
  24. PROG = objview
  25. .c.o:
  26. $(CC) -c $(CFLAGS) $< -o $@
  27. default: $(PROG)
  28. $(PROG): $(OBJS)
  29. $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
  30. $(OBJS): $(HEADERS)
  31. ### Extra dependencies
  32. extfuncs.h: $(TOP)/progs/util/extfuncs.h
  33. cp $< .
  34. readtex.c: $(TOP)/progs/util/readtex.c
  35. cp $< .
  36. readtex.h: $(TOP)/progs/util/readtex.h
  37. cp $< .
  38. shaderutil.c: $(TOP)/progs/util/shaderutil.c
  39. cp $< .
  40. shaderutil.h: $(TOP)/progs/util/shaderutil.h
  41. cp $< .
  42. trackball.c: $(TOP)/progs/util/trackball.c
  43. cp $< .
  44. trackball.h: $(TOP)/progs/util/trackball.h
  45. cp $< .
  46. clean:
  47. -rm -f $(PROG) $(OBJS)
  48. -rm -f *.o *~
  49. -rm -f extfuncs.h
  50. -rm -f shaderutil.*
  51. -rm -f trackball.*
  52. -rm -f readtex.*
  53. depend: $(SOURCES)
  54. @$(MKDEP) $(MKDEP_OPTIONS) $(INCLUDE_DIRS) $(SOURCES) \
  55. > /dev/null 2>/dev/null
  56. -include depend