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.
 
 
 
 
 
 

168 lines
3.8 KiB

  1. pkgconfigdir=$(libdir)/pkgconfig
  2. libincludedir=$(includedir)/libisofs
  3. lib_LTLIBRARIES = libisofs/libisofs.la
  4. ## ========================================================================= ##
  5. # Build libraries
  6. libisofs_libisofs_la_LDFLAGS = \
  7. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
  8. libisofs_libisofs_la_SOURCES = \
  9. libisofs/tree.h \
  10. libisofs/tree.c \
  11. libisofs/volume.h \
  12. libisofs/volume.c \
  13. libisofs/util.h \
  14. libisofs/util.c \
  15. libisofs/ecma119.c \
  16. libisofs/ecma119.h \
  17. libisofs/ecma119_tree.c \
  18. libisofs/ecma119_tree.h \
  19. libisofs/susp.h \
  20. libisofs/susp.c \
  21. libisofs/rockridge.h \
  22. libisofs/rockridge.c \
  23. libisofs/joliet.c \
  24. libisofs/joliet.h \
  25. libisofs/exclude.c \
  26. libisofs/exclude.h \
  27. libisofs/hash.h \
  28. libisofs/hash.c \
  29. libisofs/file.h \
  30. libisofs/file.c \
  31. libisofs/file_src.h \
  32. libisofs/file_src.c \
  33. libisofs/eltorito.h \
  34. libisofs/eltorito.c \
  35. libisofs/data_source.c \
  36. libisofs/ecma119_read.h \
  37. libisofs/ecma119_read.c \
  38. libisofs/ecma119_read_rr.h \
  39. libisofs/ecma119_read_rr.c \
  40. libisofs/libiso_msgs.h \
  41. libisofs/libiso_msgs.c \
  42. libisofs/messages.h \
  43. libisofs/messages.c
  44. libinclude_HEADERS = \
  45. libisofs/libisofs.h
  46. ## ========================================================================= ##
  47. ## Build test applications
  48. noinst_PROGRAMS = \
  49. test/iso \
  50. test/isoread \
  51. test/isoms \
  52. test/isoadd \
  53. test/isogrow
  54. test_iso_CPPFLAGS = -Ilibisofs
  55. test_iso_LDADD = $(libisofs_libisofs_la_OBJECTS) $(THREAD_LIBS)
  56. test_iso_SOURCES = test/iso.c
  57. test_isoread_CPPFLAGS = -Ilibisofs
  58. test_isoread_LDADD = $(libisofs_libisofs_la_OBJECTS) $(THREAD_LIBS)
  59. test_isoread_SOURCES = test/iso_read.c
  60. test_isoms_CPPFLAGS = -Ilibisofs
  61. test_isoms_LDADD = $(libisofs_libisofs_la_OBJECTS) $(THREAD_LIBS)
  62. test_isoms_SOURCES = test/iso_ms.c
  63. test_isoadd_CPPFLAGS = -Ilibisofs
  64. test_isoadd_LDADD = $(libisofs_libisofs_la_OBJECTS) $(THREAD_LIBS)
  65. test_isoadd_SOURCES = test/iso_add.c
  66. test_isogrow_CPPFLAGS = -Ilibisofs -Ilibburn
  67. test_isogrow_LDADD = $(libisofs_libisofs_la_OBJECTS) $(THREAD_LIBS) -lburn
  68. test_isogrow_SOURCES = test/iso_grow.c
  69. ## Build unit test
  70. check_PROGRAMS = \
  71. test/test
  72. test_test_CPPFLAGS = -Ilibisofs
  73. test_test_LDADD = $(libisofs_libisofs_la_OBJECTS) $(THREAD_LIBS) -lcunit
  74. test_test_LDFLAGS = -L.. -lm
  75. test_test_SOURCES = \
  76. test/test_exclude.c \
  77. test/test_tree.c \
  78. test/test_ecma119_tree.c \
  79. test/test_file_hashtable.c \
  80. test/test_util.c \
  81. test/test_volume.c \
  82. test/test_data_source.c \
  83. test/test_read.c \
  84. test/test.c
  85. ## ========================================================================= ##
  86. ## Build documentation (You need Doxygen for this to work)
  87. webhost = http://libburn-api.pykix.org
  88. webpath = /
  89. docdir = $(DESTDIR)$(prefix)/share/doc/$(PACKAGE)-$(VERSION)
  90. doc: doc/html
  91. doc/html: doc/doxygen.conf
  92. if [ -f ./doc/doc.lock ]; then \
  93. $(RM) -r doc/html; \
  94. doxygen doc/doxygen.conf; \
  95. fi
  96. doc-upload: doc/html
  97. scp -r $</* $(webhost):$(webpath)
  98. all: doc
  99. install-data-local:
  100. if [ -f ./doc/doc.lock ]; then \
  101. $(mkinstalldirs) $(docdir)/html; \
  102. $(INSTALL_DATA) doc/html/* $(docdir)/html; \
  103. fi
  104. uninstall-local:
  105. rm -rf $(docdir)
  106. ## ========================================================================= ##
  107. # Indent source files
  108. indent_files = \
  109. $(libisofs_libisofs_la_SOURCES) \
  110. $(test_iso_SOURCES)
  111. indent: $(indent_files)
  112. indent -bad -bap -nbbb -nbbo -nbc -bli0 -br -bls \
  113. -cdw -ce -cli0 -ncs -nbfda -i8 -l79 -lc79 \
  114. -lp -saf -sai -nprs -npsl -saw -sob -ss -ut \
  115. -sbi0 -nsc -ts8 -npcs -ncdb -fca \
  116. $^
  117. .PHONY: indent
  118. ## ========================================================================= ##
  119. # Extra things
  120. nodist_pkgconfig_DATA = \
  121. libisofs-5.pc
  122. EXTRA_DIST = \
  123. libisofs-5.pc.in \
  124. version.h.in \
  125. doc/comments \
  126. doc/doxygen.conf.in \
  127. README \
  128. AUTHORS \
  129. CONTRIBUTORS \
  130. COPYRIGHT \
  131. COPYING \
  132. NEWS \
  133. INSTALL \
  134. ChangeLog