Makefile.am 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. ## Process this file with automake to produce a Makefile.in
  2. AUTOMAKE_OPTIONS = 1.1 foreign
  3. ## Directory definitions
  4. localedir = $(datadir)/locale
  5. ## Various options
  6. CFLAGS = @CFLAGS@ @CWARNS@ -g $(XCFLAGS) -DLOCALEDIR=\"$(localedir)\"
  7. OPTCFLAGS = @CFLAGS@ @OPTCFLAGS@ @CWARNS@ -g $(XCFLAGS) -DLOCALEDIR=\"$(localedir)\"
  8. LDFLAGS = @LDFLAGS@ $(XLDFLAGS)
  9. LIBS = @INTLLIBS@ @LIBS@ $(XLIBS)
  10. CXXFLAGS = @CXXFLAGS@ @CWARNS@ -g $(XCXXFLAGS) -DLOCALEDIR=\"$(localedir)\"
  11. OPTCXXFLAGS = @CXXFLAGS@ @OPTCFLAGS@ @CWARNS@ -g $(XCXXFLAGS) -DLOCALEDIR=\"$(localedir)\"
  12. DEFS = -I$(top_srcdir)/include -I$(top_srcdir) -I$(srcdir) \
  13. -I$(top_builddir) -I$(top_builddir)/include -I. \
  14. -I$(top_srcdir)/intl -I$(top_builddir)/intl @DEFS@
  15. ## Automake variables
  16. bin_PROGRAMS = dpkg
  17. man_MANS = dpkg.8
  18. dpkg_SOURCES = main.c enquiry.c filesdb.c archives.c processarc.c \
  19. cleanup.c select.c packages.c configure.c remove.c \
  20. help.c depcon.c errors.c update.c main.h filesdb.h \
  21. archives.h
  22. dpkg_LDADD = ../lib/libdpkg.la ../lib/myopt.o
  23. BUILT_SOURCES = archtable.h
  24. CLEANFILES = archtable.h.new $(BUILT_SOURCES)
  25. DISTCLEANFILES = updates status available *.old
  26. MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
  27. EXTRA_DIST = dpkg.8
  28. ## Rules
  29. filesdb.o: filesdb.c
  30. $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(OPTCFLAGS) -c $<
  31. $(DEP_FILES): archtable.h
  32. archtable.h: $(top_srcdir)/archtable
  33. expand $(top_srcdir)/archtable | \
  34. perl -ne 'print " { \"$$1\",$$2\"$$3\",$$4\"$$5\" },\n" \
  35. if m/^\s*(\w+)(\s+)(\w+)(\s+)(\w+)\s*$$/' \
  36. >$@.new
  37. mv $@.new $@
  38. dist-hook:
  39. cp -p archtable.h $(distdir)/
  40. ## End of file.