Makefile.in 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. ## Copyright (C) 2016 and later: Unicode, Inc. and others.
  2. ## License & terms of use: http://www.unicode.org/copyright.html#License
  3. ##
  4. ## Makefile.in for ICU - samples/layout
  5. ## Copyright (c) 2001-2011, International Business Machines Corporation and
  6. ## others. All Rights Reserved.
  7. ## Source directory information
  8. srcdir = @srcdir@
  9. top_srcdir = @top_srcdir@
  10. top_builddir = ../..
  11. include $(top_builddir)/icudefs.mk
  12. ## Platform-specific setup
  13. include @platform_make_fragment@
  14. ## Build directory information
  15. subdir = samples/layout
  16. ## Extra files to remove for 'make clean'
  17. CLEANFILES = *~ $(DEPS)
  18. ## Target information
  19. TARGET = gnomelayout
  20. CTARGET = cgnomelayout
  21. CPPFLAGS += -DLE_USE_CMEMORY `pkg-config --cflags libgnomeui-2.0 freetype2 cairo` -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(top_srcdir)/layoutex -I$(top_srcdir)/layout -I$(top_srcdir) -g
  22. LIBS = $(LIBICULX) $(LIBICULE) $(LIBICUUC) $(LIBICUI18N) @LIBS@ @LIB_M@ `pkg-config --libs libgnomeui-2.0 freetype2 cairo`
  23. COMMON=cmaps.o UnicodeReader.o GnomeGUISupport.o FontMap.o GnomeFontMap.o ScriptCompositeFontInstance.o GnomeFontInstance.o FontTableCache.o paragraph.o
  24. OBJECTS=gnomelayout.o
  25. COBJECTS=gnomeglue.o pflow.o rsurface.o ucreader.o cgnomelayout.o
  26. DEPS = $(OBJECTS:.o=.d)
  27. ## List of phony targets
  28. .PHONY : all all-local install install-local clean clean-local \
  29. distclean distclean-local dist dist-local check check-local
  30. ## Clear suffix list
  31. .SUFFIXES :
  32. ## List of standard targets
  33. all: all-local
  34. install: install-local
  35. clean: clean-local
  36. distclean : distclean-local
  37. dist: dist-local
  38. check: all check-local
  39. c-all: c-all-local
  40. c-check: c-all c-check-local
  41. all-local: $(TARGET)
  42. c-all-local: $(CTARGET)
  43. install-local:
  44. dist-local:
  45. clean-local:
  46. test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
  47. $(RMV) $(COMMON) $(OBJECTS) $(COBJECTS) $(TARGET)
  48. distclean-local: clean-local
  49. $(RMV) Makefile
  50. check-local: all-local
  51. $(INVOKE) ./$(TARGET)
  52. c-check-local: c-all-local
  53. $(INVOKE) ./$(CTARGET)
  54. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  55. cd $(top_builddir) \
  56. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  57. # The following two rules make it possible to
  58. # compile scrptrun.cpp from the extra/scrptrun directory.
  59. # they were copied from the default rules in mh-linux which
  60. # is probably OK because this sample will only run on Linux...
  61. scrptrun.d: $(top_srcdir)/extra/scrptrun/scrptrun.cpp
  62. $(SHELL) -ec '$(GEN_DEPS.cc) $< \
  63. | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
  64. [ -s $@ ] || rm -f $@'
  65. scrptrun.o: $(top_srcdir)/extra/scrptrun/scrptrun.cpp
  66. $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
  67. $(TARGET) : $(COMMON) $(OBJECTS)
  68. $(LINK.cc) -o $@ $^ $(LIBS)
  69. $(CTARGET) : $(COMMON) $(COBJECTS)
  70. $(LINK.cc) -o $@ $^ $(LIBS)
  71. invoke:
  72. ICU_DATA=$${ICU_DATA:-$(top_builddir)/data/} TZ=PST8PDT $(INVOKE) $(INVOCATION)
  73. ifeq (,$(MAKECMDGOALS))
  74. -include $(DEPS)
  75. else
  76. ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
  77. -include $(DEPS)
  78. endif
  79. endif