Makefile.am 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. HOST_CPU=@host_cpu@
  2. AM_CFLAGS=-Wall -DHOST_CPU_STR=\"$(HOST_CPU)\" -DBUILD_CPU=@build_cpu@ -DLIBDIR=\"@libdir@\" -DOPKGLIBDIR=\"@opkglibdir@\" -DOPKGETCDIR=\"@opkgetcdir@\" -DOPKGLOCKFILE=\"@opkglockfile@\" -DDATADIR=\"@datadir@\" -I$(top_srcdir) $(BIGENDIAN_CFLAGS) $(CURL_CFLAGS) $(GPGME_CFLAGS) $(PATHFINDER_CFLAGS)
  3. libopkg_includedir=$(includedir)/libopkg
  4. libopkg_include_HEADERS= *.h
  5. opkg_libcore_sources = \
  6. opkg.c opkg.h \
  7. opkg_defines.h
  8. opkg_cmd_sources = opkg_cmd.c opkg_cmd.h \
  9. opkg_configure.c opkg_configure.h \
  10. opkg_download.c opkg_download.h \
  11. opkg_install.c opkg_install.h \
  12. opkg_upgrade.c opkg_upgrade.h \
  13. opkg_remove.c opkg_remove.h
  14. opkg_db_sources = opkg_conf.c opkg_conf.h \
  15. opkg_utils.c opkg_utils.h pkg.c pkg.h hash_table.h \
  16. pkg_depends.c pkg_depends.h pkg_extract.c pkg_extract.h \
  17. hash_table.c pkg_hash.c pkg_hash.h pkg_parse.c pkg_parse.h \
  18. pkg_vec.c pkg_vec.h
  19. opkg_list_sources = conffile.c conffile.h conffile_list.c conffile_list.h \
  20. nv_pair.c nv_pair.h nv_pair_list.c nv_pair_list.h \
  21. pkg_dest.c pkg_dest.h pkg_dest_list.c pkg_dest_list.h \
  22. pkg_src.c pkg_src.h pkg_src_list.c pkg_src_list.h \
  23. str_list.c str_list.h void_list.c void_list.h \
  24. active_list.c active_list.h list.h
  25. opkg_util_sources = file_util.c file_util.h opkg_message.h opkg_message.c \
  26. parse_util.c parse_util.h \
  27. sprintf_alloc.c sprintf_alloc.h \
  28. xregex.c xregex.h xsystem.c xsystem.h
  29. if HAVE_PATHFINDER
  30. opkg_util_sources += opkg_pathfinder.c opkg_pathfinder.h
  31. endif
  32. if HAVE_MD5
  33. opkg_util_sources += md5.c md5.h
  34. endif
  35. if HAVE_SHA256
  36. opkg_util_sources += sha256.c sha256.h
  37. endif
  38. noinst_LIBRARIES = libopkg.a
  39. libopkg_a_SOURCES = \
  40. $(opkg_libcore_sources) \
  41. $(opkg_cmd_sources) $(opkg_db_sources) \
  42. $(opkg_util_sources) $(opkg_list_sources)
  43. libopkg_a_LIBADD = $(top_builddir)/libbb/libbb.a