logo

libbulletml

Library of Bullet Markup Language (forked from https://shinh.skr.jp/libbulletml/index_en.html )git clone https://anongit.hacktivis.me/git/libbulletml.git/

Makefile (2388B)


  1. #****************************************************************************
  2. #
  3. # Makefil for TinyXml test.
  4. # Lee Thomason
  5. # www.grinninglizard.com
  6. #
  7. # This is a GNU make (gmake) makefile
  8. #****************************************************************************
  9. # DEBUG can be set to YES to include debugging info, or NO otherwise
  10. DEBUG := NO
  11. # PROFILE can be set to YES to include profiling info, or NO otherwise
  12. PROFILE := NO
  13. #****************************************************************************
  14. # Preprocessor directives
  15. #****************************************************************************
  16. ifeq (YES, ${PROFILE})
  17. DEFS :=
  18. else
  19. DEFS :=
  20. endif
  21. #****************************************************************************
  22. # Include paths
  23. #****************************************************************************
  24. #INCS := -I/usr/include/g++-2 -I/usr/local/include
  25. INCS :=
  26. #****************************************************************************
  27. # Makefile code common to all platforms
  28. #****************************************************************************
  29. CFLAGS += ${DEFS}
  30. CXXFLAGS += ${DEFS}
  31. #****************************************************************************
  32. # Targets of the build
  33. #****************************************************************************
  34. OUTPUT := xmltest
  35. all: ${OUTPUT}
  36. #****************************************************************************
  37. # Source files
  38. #****************************************************************************
  39. SRCS := tinyxml.cpp tinyxmlparser.cpp xmltest.cpp tinyxmlerror.cpp
  40. # Add on the sources for libraries
  41. SRCS := ${SRCS}
  42. OBJS := $(addsuffix .o,$(basename ${SRCS}))
  43. #****************************************************************************
  44. # Output
  45. #****************************************************************************
  46. ${OUTPUT}: ${OBJS}
  47. ${CXX} ${LDFLAGS} -o $@ ${OBJS} ${LIBS} ${EXTRA_LIBS}
  48. #****************************************************************************
  49. # common rules
  50. #****************************************************************************
  51. # Rules for compiling source files to object files
  52. %.o : %.cpp
  53. ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${INCS} -c $< -o $@
  54. %.o : %.c
  55. ${CC} ${CFLAGS} ${CPPFLAGS} ${INCS} -c $< -o $@
  56. clean:
  57. -rm -f core ${OBJS} ${OUTPUT}
  58. depend:
  59. makedepend ${INCS} ${SRCS}
  60. distdir: