Makefile.in 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. VPATH = @srcdir@
  2. srcdir = @srcdir@
  3. top_srcdir = @top_srcdir@
  4. top_builddir = ..
  5. default: all
  6. include ../Makefile.conf
  7. SOURCES = build.c extract.c info.c main.c
  8. OBJECTS = $(patsubst %.c, %.o, $(SOURCES))
  9. GENFILES = $(OBJECTS) dpkg-deb dpkg-deb-static
  10. .PHONY: all
  11. all:: dpkg-deb
  12. ifdef ALSO_STATIC
  13. all:: dpkg-deb-static
  14. endif
  15. .PHONY: install
  16. install:: all
  17. .PHONY: clean
  18. clean::
  19. -$(RM) $(GENFILES)
  20. .PHONY: distclean
  21. cvslean:: clean
  22. $(RM) Makefile
  23. .PHONY: install
  24. install:: install-program install-doc
  25. .PHONY: install-program
  26. install-program:
  27. $(mkinstalldirs) $(DESTDIR)$(bindir)
  28. $(INSTALL) dpkg-deb $(DESTDIR)$(bindir)
  29. ifdef ALSO_STATIC
  30. $(INSTALL) dpkg-deb-static $(DESTDIR)$(bindir)
  31. endif
  32. .PHONY: install-doc
  33. install-doc:
  34. $(mkinstalldirs) $(DESTDIR)$(man1dir)
  35. $(INSTALL_DATA) $(srcdir)/dpkg-deb.1 $(DESTDIR)$(man1dir)
  36. dpkg-deb-static: LDFLAGS += -static
  37. dpkg-deb-static: ZLIB_LIBS = $(ZLIB_LIBS_ALSO_STATIC)
  38. dpkg-deb dpkg-deb-static: $(OBJECTS) ../lib/libdpkg.a
  39. $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS) $(NLS_LIBS)