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 945B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # progs/samples/Makefile
  2. TOP = ../..
  3. include $(TOP)/configs/current
  4. INCDIR = $(TOP)/include
  5. LIB_DEP = $(LIB_DIR)/$(GL_LIB_NAME) $(LIB_DIR)/$(GLU_LIB_NAME) $(LIB_DIR)/$(GLUT_LIB_NAME)
  6. PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
  7. font line logo nurb olympic overlay point prim quad select \
  8. shape sphere star stencil stretch texture tri wave
  9. ##### RULES #####
  10. .SUFFIXES:
  11. .SUFFIXES: .c
  12. .c: $(LIB_DEP)
  13. $(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
  14. ##### TARGETS #####
  15. default: $(PROGS)
  16. sphere: sphere.o readtex.o
  17. $(CC) -I$(INCDIR) $(CFLAGS) sphere.o readtex.o $(APP_LIB_DEPS) -o $@
  18. sphere.o: sphere.c readtex.h
  19. $(CC) -c -I$(INCDIR) $(CFLAGS) sphere.c
  20. readtex.c: $(TOP)/progs/util/readtex.c
  21. cp $< .
  22. readtex.h: $(TOP)/progs/util/readtex.h
  23. cp $< .
  24. readtex.o: readtex.c readtex.h
  25. $(CC) -c -I$(INCDIR) $(CFLAGS) $< -o $@
  26. clean:
  27. -rm -f $(PROGS)
  28. -rm -f *.o *~
  29. -rm -f readtex.c readtex.h