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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # progs/slang/Makefile
  2. TOP = ../..
  3. include $(TOP)/configs/current
  4. INCDIR = $(TOP)/include
  5. LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
  6. LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
  7. #
  8. # targets
  9. #
  10. .PHONY: default tests clean
  11. default: cltest sotest vstest
  12. tests: default
  13. ! ./sotest 2> /dev/null | (grep -e ^[*][*][*])
  14. ! ./vstest 2> /dev/null | (grep -e ^[*][*][*])
  15. ! ./cltest 2> /dev/null | (grep -e ^[*][*][*])
  16. clean:
  17. -rm -f cltest.o sotest.o vstest.o framework.o cltest sotest vstest
  18. #
  19. # executables
  20. #
  21. cltest: cltest.o framework.o $(LIB_DEP)
  22. $(CC) $(CFLAGS) $(LDFLAGS) cltest.o framework.o $(LIBS) -o cltest
  23. sotest: sotest.o framework.o $(LIB_DEP)
  24. $(CC) $(CFLAGS) $(LDFLAGS) sotest.o framework.o $(LIBS) -o sotest
  25. vstest: vstest.o framework.o $(LIB_DEP)
  26. $(CC) $(CFLAGS) $(LDFLAGS) vstest.o framework.o $(LIBS) -o vstest
  27. #
  28. # objects
  29. #
  30. framework.o: framework.c framework.h
  31. $(CC) -c -I$(INCDIR) $(CFLAGS) framework.c -o framework.o
  32. cltest.o: cltest.c framework.h
  33. $(CC) -c -I$(INCDIR) $(CFLAGS) cltest.c -o cltest.o
  34. sotest.o: sotest.c framework.h
  35. $(CC) -c -I$(INCDIR) $(CFLAGS) sotest.c -o sotest.o
  36. vstest.o: vstest.c framework.h
  37. $(CC) -c -I$(INCDIR) $(CFLAGS) vstest.c -o vstest.o