Clone of mesa.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Makefile 1.1KB

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