[120] | 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 | |
---|
| 17 | COPTS=-g3 -O0 -Wall |
---|
| 18 | |
---|
| 19 | all: ${LIBRECORDIO_BUILD_DIR}/librecordio.a |
---|
| 20 | |
---|
| 21 | COBJS = $(addprefix ${LIBRECORDIO_BUILD_DIR}/, recordio.o filestream.o binarchive.o csvarchive.o xmlarchive.o \ |
---|
| 22 | exception.o typeIDs.o fieldTypeInfo.o recordTypeInfo.o utils.o) |
---|
| 23 | |
---|
| 24 | CCMD = $(addprefix ${LIBRECORDIO_BUILD_DIR}/, librecordio.a recordio.o filestream.o binarchive.o csvarchive.o xmlarchive.o \ |
---|
| 25 | exception.o typeIDs.o fieldTypeInfo.o recordTypeInfo.o utils.o) |
---|
| 26 | |
---|
| 27 | ${LIBRECORDIO_BUILD_DIR}/librecordio.a: ${COBJS} |
---|
| 28 | ar cru ${CCMD} |
---|
| 29 | |
---|
| 30 | ${LIBRECORDIO_BUILD_DIR}/recordio.o: recordio.cc recordio.hh archive.hh |
---|
| 31 | g++ ${COPTS} -c -I${XERCESCROOT}/include -o ${LIBRECORDIO_BUILD_DIR}/recordio.o recordio.cc |
---|
| 32 | |
---|
| 33 | ${LIBRECORDIO_BUILD_DIR}/filestream.o: filestream.cc recordio.hh filestream.hh |
---|
| 34 | g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/filestream.o filestream.cc |
---|
| 35 | |
---|
| 36 | ${LIBRECORDIO_BUILD_DIR}/binarchive.o: binarchive.cc recordio.hh binarchive.hh archive.hh |
---|
| 37 | g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/binarchive.o binarchive.cc |
---|
| 38 | |
---|
| 39 | ${LIBRECORDIO_BUILD_DIR}/csvarchive.o: csvarchive.cc recordio.hh csvarchive.hh archive.hh |
---|
| 40 | g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/csvarchive.o csvarchive.cc |
---|
| 41 | |
---|
| 42 | ${LIBRECORDIO_BUILD_DIR}/xmlarchive.o: xmlarchive.cc recordio.hh xmlarchive.hh archive.hh |
---|
| 43 | g++ ${COPTS} -c -I${XERCESCROOT}/include -o ${LIBRECORDIO_BUILD_DIR}/xmlarchive.o xmlarchive.cc |
---|
| 44 | |
---|
| 45 | ${LIBRECORDIO_BUILD_DIR}/exception.o: exception.cc exception.hh |
---|
| 46 | g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/exception.o exception.cc |
---|
| 47 | |
---|
| 48 | ${LIBRECORDIO_BUILD_DIR}/typeIDs.o: typeIDs.cc typeIDs.hh |
---|
| 49 | g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/typeIDs.o typeIDs.cc |
---|
| 50 | ${LIBRECORDIO_BUILD_DIR}/fieldTypeInfo.o: fieldTypeInfo.cc fieldTypeInfo.hh |
---|
| 51 | g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/fieldTypeInfo.o fieldTypeInfo.cc |
---|
| 52 | ${LIBRECORDIO_BUILD_DIR}/recordTypeInfo.o: recordTypeInfo.cc recordTypeInfo.hh |
---|
| 53 | g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/recordTypeInfo.o recordTypeInfo.cc |
---|
| 54 | ${LIBRECORDIO_BUILD_DIR}/utils.o: utils.cc utils.hh |
---|
| 55 | g++ ${COPTS} -c -o ${LIBRECORDIO_BUILD_DIR}/utils.o utils.cc |
---|
| 56 | recordio.cc: recordio.hh archive.hh exception.hh |
---|
| 57 | filestream.cc: recordio.hh filestream.hh |
---|
| 58 | binarchive.cc: recordio.hh binarchive.hh |
---|
| 59 | csvarchive.cc: recordio.hh csvarchive.hh |
---|
| 60 | xmlarchive.cc: recordio.hh xmlarchive.hh |
---|
| 61 | exception.cc: exception.hh |
---|
| 62 | typeIDs.cc: typeIDs.hh |
---|
| 63 | fieldTypeInfo.cc: fieldTypeInfo.hh |
---|
| 64 | recordTypeInfo.cc: recordTypeInfo.hh |
---|
| 65 | utils.cc: utils.hh |
---|
| 66 | |
---|
| 67 | test: librecordio.a |
---|
| 68 | make -C test all |
---|
| 69 | |
---|
| 70 | clean: |
---|
| 71 | rm -f ${LIBRECORDIO_BUILD_DIR}/*~ ${LIBRECORDIO_BUILD_DIR}/*.o ${LIBRECORDIO_BUILD_DIR}/*.a |
---|
| 72 | make -C test clean |
---|