Makefile
上传用户:quxuerui
上传日期:2018-01-08
资源大小:41811k
文件大小:3k
源码类别:

网格计算

开发平台:

Java

  1. #
  2. # Copyright 2005 The Apache Software Foundation
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. #     http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. COPTS=-g3 -O0 -Wall
  17. all: ${LIBRECORDIO_BUILD_DIR}/librecordio.a
  18. COBJS = $(addprefix ${LIBRECORDIO_BUILD_DIR}/, recordio.o filestream.o binarchive.o csvarchive.o xmlarchive.o 
  19. exception.o typeIDs.o fieldTypeInfo.o recordTypeInfo.o utils.o)
  20. CCMD = $(addprefix ${LIBRECORDIO_BUILD_DIR}/, librecordio.a recordio.o filestream.o binarchive.o csvarchive.o xmlarchive.o 
  21.         exception.o typeIDs.o fieldTypeInfo.o recordTypeInfo.o utils.o)
  22. ${LIBRECORDIO_BUILD_DIR}/librecordio.a: ${COBJS}
  23. ar cru ${CCMD}
  24. ${LIBRECORDIO_BUILD_DIR}/recordio.o: recordio.cc recordio.hh archive.hh
  25. g++ ${COPTS} -c -I${XERCESCROOT}/include -o ${LIBRECORDIO_BUILD_DIR}/recordio.o recordio.cc
  26. ${LIBRECORDIO_BUILD_DIR}/filestream.o: filestream.cc recordio.hh filestream.hh
  27. g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/filestream.o filestream.cc
  28. ${LIBRECORDIO_BUILD_DIR}/binarchive.o: binarchive.cc recordio.hh binarchive.hh archive.hh
  29. g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/binarchive.o binarchive.cc
  30. ${LIBRECORDIO_BUILD_DIR}/csvarchive.o: csvarchive.cc recordio.hh csvarchive.hh archive.hh
  31. g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/csvarchive.o csvarchive.cc
  32. ${LIBRECORDIO_BUILD_DIR}/xmlarchive.o: xmlarchive.cc recordio.hh xmlarchive.hh archive.hh
  33. g++ ${COPTS} -c -I${XERCESCROOT}/include -o ${LIBRECORDIO_BUILD_DIR}/xmlarchive.o xmlarchive.cc
  34. ${LIBRECORDIO_BUILD_DIR}/exception.o: exception.cc exception.hh
  35. g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/exception.o exception.cc
  36. ${LIBRECORDIO_BUILD_DIR}/typeIDs.o: typeIDs.cc typeIDs.hh
  37. g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/typeIDs.o typeIDs.cc
  38. ${LIBRECORDIO_BUILD_DIR}/fieldTypeInfo.o: fieldTypeInfo.cc fieldTypeInfo.hh
  39. g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/fieldTypeInfo.o fieldTypeInfo.cc
  40. ${LIBRECORDIO_BUILD_DIR}/recordTypeInfo.o: recordTypeInfo.cc recordTypeInfo.hh
  41. g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/recordTypeInfo.o recordTypeInfo.cc
  42. ${LIBRECORDIO_BUILD_DIR}/utils.o: utils.cc utils.hh
  43. g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/utils.o utils.cc
  44. recordio.cc: recordio.hh archive.hh exception.hh
  45. filestream.cc: recordio.hh filestream.hh 
  46. binarchive.cc: recordio.hh binarchive.hh 
  47. csvarchive.cc: recordio.hh csvarchive.hh 
  48. xmlarchive.cc: recordio.hh xmlarchive.hh 
  49. exception.cc: exception.hh 
  50. typeIDs.cc: typeIDs.hh
  51. fieldTypeInfo.cc: fieldTypeInfo.hh
  52. recordTypeInfo.cc: recordTypeInfo.hh
  53. utils.cc: utils.hh
  54. test: librecordio.a
  55. make -C test all
  56. clean:
  57. rm -f ${LIBRECORDIO_BUILD_DIR}/*~ ${LIBRECORDIO_BUILD_DIR}/*.o ${LIBRECORDIO_BUILD_DIR}/*.a
  58. make -C test clean