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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Makefile for miniglx demo programs
  2. TOP = ../..
  3. include $(TOP)/configs/current
  4. SOURCES = miniglxtest.c \
  5. miniglxsample.c \
  6. sample_server.c \
  7. sample_server2.c \
  8. manytex.c \
  9. texline.c
  10. OBJECTS = $(SOURCES:.c=.o)
  11. PROGS = $(SOURCES:%.c=%)
  12. INCLUDES = \
  13. -I. \
  14. -I$(TOP)/include
  15. LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
  16. ##### RULES #####
  17. .SUFFIXES:
  18. .SUFFIXES: .c
  19. .c:
  20. $(CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
  21. .c.o:
  22. $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
  23. .S.o:
  24. $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
  25. ##### TARGETS #####
  26. default: depend $(PROGS)
  27. clean:
  28. -rm -f $(PROGS)
  29. -rm -f *.o
  30. depend: $(SOURCES)
  31. rm -f depend
  32. touch depend
  33. $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) > /dev/null
  34. # Emacs tags
  35. tags:
  36. etags `find . -name \*.[ch]` `find ../include`
  37. include depend