This contains my bachelors thesis and associated tex files, code snippets and maybe more. Topic: Data Movement in Heterogeneous Memories with Intel Data Streaming Accelerator
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.

108 lines
3.3 KiB

  1. # This file is free software; as a special exception the author gives
  2. # unlimited permission to copy and/or distribute it, with or without
  3. # modifications, as long as this notice is preserved.
  4. #
  5. # This program is distributed in the hope that it will be useful, but
  6. # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
  7. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. srcdir= @srcdir@
  9. VPATH= @srcdir@
  10. prefix= @prefix@
  11. exec_prefix= @exec_prefix@
  12. datadir= @datadir@
  13. localedir= $(datadir)/locale
  14. CC= @CC@
  15. CFLAGS= @CFLAGS@
  16. CPPFLAGS= @CPPFLAGS@ -I. -DSHAREDIR=\"@datadir@\" -DLOCALEDIR=\"$(localedir)\"
  17. LDFLAGS= @LDFLAGS@
  18. LIBM= -lm
  19. LIBS= @LIBS@
  20. CATALOGS= de.mo
  21. all: diction style all-po-@USE_NLS@
  22. all-po-no:
  23. all-po-yes: $(CATALOGS)
  24. diction: diction.o sentence.o misc.o getopt.o getopt1.o
  25. $(CC) -o $@ $(LDFLAGS) diction.o sentence.o misc.o \
  26. getopt.o getopt1.o $(LIBS)
  27. style: style.o sentence.o misc.o getopt.o getopt1.o
  28. $(CC) -o $@ $(LDFLAGS) style.o sentence.o misc.o \
  29. getopt.o getopt1.o $(LIBM) $(LIBS)
  30. check: diction
  31. for i in $(srcdir)/test/test*; do $$i || break; done
  32. install: all
  33. [ -d $(DESTDIR)@bindir@ ] || @INSTALL@ -m 755 -d $(DESTDIR)@bindir@
  34. @INSTALL@ diction $(DESTDIR)@bindir@/diction
  35. @INSTALL@ style $(DESTDIR)@bindir@/style
  36. @INSTALL@ -m 755 -d $(DESTDIR)@datadir@/diction
  37. @INSTALL@ -m 644 $(srcdir)/de $(DESTDIR)@datadir@/diction/de
  38. @INSTALL@ -m 644 $(srcdir)/en $(DESTDIR)@datadir@/diction/en
  39. (cd $(DESTDIR)@datadir@/diction; rm -f C; ln en C)
  40. [ -d $(DESTDIR)@mandir@/man1 ] || @INSTALL@ -m 755 -d $(DESTDIR)@mandir@/man1
  41. @INSTALL@ -m 644 diction.1 $(DESTDIR)@mandir@/man1/diction.1
  42. @INSTALL@ -m 644 style.1 $(DESTDIR)@mandir@/man1/style.1
  43. make install-po-@USE_NLS@
  44. install-po-no:
  45. install-po-yes: $(CATALOGS)
  46. for cat in $(CATALOGS); do \
  47. dir=$(localedir)/`basename $$cat .mo`/LC_MESSAGES; \
  48. [ -d $(DESTDIR)$$dir ] || @INSTALL@ -m 755 -d $(DESTDIR)$$dir; \
  49. @INSTALL@ -m 644 $$cat $(DESTDIR)$$dir/diction.mo; \
  50. done
  51. .c.o:
  52. $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
  53. .SUFFIXES: .po .mo
  54. .po.mo:
  55. msgfmt -o $@ $<
  56. $(CATALOGS:.mo=.po): diction.pot
  57. for cat in $@; do \
  58. [ -f $$cat ] || cp $(srcdir)/$$cat .; \
  59. if msgmerge $$cat $< -o $$cat.tmp; then \
  60. mv -f $$cat.tmp $$cat; \
  61. cmp -s $$cat $(srcdir)/$$cat || \
  62. cp $$cat $(srcdir)/$$cat; \
  63. else \
  64. echo "msgmerge for $$cat failed!"; \
  65. rm -f $$cat.tmp; \
  66. exit 1; \
  67. fi; \
  68. done
  69. diction.pot: $(srcdir)/*.c
  70. (objdir=`pwd`; cd $(srcdir); \
  71. xgettext --add-comments --keyword=_ \
  72. --output=$$objdir/messages.po *.c )
  73. test -f messages.po && mv messages.po $@
  74. # The sources have changed -- update diction.pot in srcdir as well.
  75. cp $@ $(srcdir)/$@
  76. diction.html: diction.texi
  77. makeinfo --html diction.texi
  78. diction.info: diction.texi
  79. makeinfo diction.texi
  80. #{{{script}}}#{{{ clean
  81. clean:
  82. rm -f *.out core *.o *.mo diction.html diction.info
  83. #}}}
  84. #{{{ distclean
  85. distclean: clean
  86. rm -f diction style config.cache config.h config.log config.status Makefile diction.1 diction.texi style.1 test/rundiction
  87. rm -rf autom4te.cache
  88. #}}}
  89. #{{{ tar
  90. tar: distclean
  91. (b=`pwd`; b=`basename $$b`; cd ..; tar zcvf $$b.tar.gz $$b/COPYING $$b/INSTALL $$b/Makefile.in $$b/README $$b/NEWS $$b/configure $$b/install-sh $$b/de $$b/en $$b/test $$b/[a-z]*.*)
  92. #}}}