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.

69 lines
2.4 KiB

  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. #
  18. #
  19. #
  20. # REVISIT: this should really be generalized to support platforms
  21. # other than Windows/MSVC++ and Linux/gcc. However, the portability of
  22. # wide character I/O is very non-portable; so this is a nontrivial
  23. # prospect. That's why this Makefile is provided only for gcc
  24. # at the moment.
  25. XLAT_CPP_OBJECTS = \
  26. Xlat.o \
  27. Xlat_CppSrc.o \
  28. Xlat_ICUResourceBundle.o \
  29. Xlat_MsgCatalog.o \
  30. Xlat_Win32RC.o
  31. PLATFORM = LINUX
  32. COMPILER = g++
  33. GCC = yes
  34. GXX = yes
  35. CXXFLAGS = -w -O -D_GNU_SOURCE
  36. CFLAGS = -w -O -D_GNU_SOURCE
  37. LDFLAGS =
  38. EXTRA_LIBS =
  39. LIBRARY_SEARCH_PATHS=-L../../../lib/
  40. LIBRARY_NAMES=-lxerces-c
  41. INCLUDES=-I../../../include
  42. CMP= -c ${CXXFLAGS}
  43. CC= ${COMPILER} -c -D_REENTRANT -fpic
  44. LINK = ${COMPILER} -fpic ${LDFLAGS}
  45. EXTRA_LINK_OPTIONS=-lc ${EXTRA_LIBS}
  46. APP_NAME=NLSXlat
  47. all:: ${APP_NAME}
  48. ${APP_NAME}:: ${XLAT_CPP_OBJECTS}
  49. ${LINK} ${XLAT_CPP_OBJECTS} -o ${APP_NAME} ${LIBRARY_SEARCH_PATHS} ${LIBRARY_NAMES} ${EXTRA_LINK_OPTIONS}
  50. Xlat.o:: Xlat.cpp Xlat_ErrHandler.hpp Xlat_Formatter.hpp Xlat_Types.hpp
  51. ${CC} ${INCLUDES} ${CMP} -o Xlat.o Xlat.cpp
  52. Xlat_CppSrc.o:: Xlat_CppSrc.cpp Xlat_CppSrc.hpp
  53. ${CC} ${INCLUDES} ${CMP} -o Xlat_CppSrc.o Xlat_CppSrc.cpp
  54. Xlat_ICUResourceBundle.o:: Xlat_ICUResourceBundle.cpp Xlat_ICUResourceBundle.hpp
  55. ${CC} ${INCLUDES} ${CMP} -o Xlat_ICUResourceBundle.o Xlat_ICUResourceBundle.cpp
  56. Xlat_MsgCatalog.o:: Xlat_MsgCatalog.cpp Xlat_MsgCatalog.hpp
  57. ${CC} ${INCLUDES} ${CMP} -o Xlat_MsgCatalog.o Xlat_MsgCatalog.cpp
  58. Xlat_Win32RC.o:: Xlat_Win32RC.cpp Xlat_Win32RC.hpp
  59. ${CC} ${INCLUDES} ${CMP} -o Xlat_Win32RC.o Xlat_Win32RC.cpp
  60. clean::
  61. rm -f ${XLAT_CPP_OBJECTS} ${APP_NAME}