Makefile.in 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Copyright (C) 1994 Ian Murdock <imurdock@debian.org>
  2. # Copyright (C) 1994,1995 Ian Jackson <ijackson@nyx.cs.du.edu>
  3. #
  4. # This is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as
  6. # published by the Free Software Foundation; either version 2,
  7. # or (at your option) any later version.
  8. #
  9. # This is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public
  15. # License along with dpkg; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. srcdir = @srcdir@
  18. VPATH = @srcdir@
  19. prefix = @prefix@
  20. exec_prefix = $(prefix)
  21. bindir = $(exec_prefix)/bin
  22. libdir = $(prefix)/lib
  23. dpkglibdir = $(libdir)/dpkg
  24. datadir = /var/lib/dpkg
  25. partsdir = $(datadir)/parts
  26. mandir = $(prefix)/man
  27. man8dir = $(mandir)/man8
  28. man8 = 8
  29. perlpath = @perlpath@
  30. SRC = main.c split.c info.c queue.c join.c
  31. OBJ = main.o split.o info.o queue.o join.o
  32. INSTALL = @INSTALL@
  33. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  34. INSTALL_DATA = @INSTALL_DATA@
  35. CC = @CC@
  36. CFLAGS = @CFLAGS@ @CWARNS@ -g $(XCFLAGS)
  37. LDFLAGS = $(XLDFLAGS)
  38. LIBS = -L../lib -ldpkg $(XLIBS)
  39. ALL_CFLAGS = -I../include -I.. @DEFS@ $(CFLAGS)
  40. .SUFFIXES: .c .o .pl
  41. .c.o:
  42. $(CC) $(ALL_CFLAGS) -c $<
  43. .pl:
  44. sed <$@.pl 's:^#!/usr/bin/perl:#!$(perlpath):' \
  45. | ../insert-version.pl >$@.new
  46. chmod +x $@.new
  47. mv $@.new $@
  48. all: dpkg-split mksplit
  49. dpkg-split: $(OBJ) ../lib/libdpkg.a
  50. $(CC) $(LDFLAGS) -o dpkg-split $(OBJ) $(LIBS)
  51. split.o: split.c
  52. $(CC) -DMKSPLITSCRIPT=\"$(dpkglibdir)/mksplit\" $(ALL_CFLAGS) -c $<
  53. $(OBJ): dpkg-split.h ../config.h ../include/dpkg.h
  54. build.o split.o queue.o join.o main.o: ../include/dpkg-db.h
  55. info.o extract.o main.o: ../include/myopt.h
  56. main.o: ../version.h
  57. clean:
  58. rm -f *.o core dpkg-split
  59. distclean: clean
  60. rm -f Makefile *.orig *~ *.~* ./#*#
  61. install: all
  62. $(INSTALL_PROGRAM) -s dpkg-split $(bindir)/dpkg-split
  63. $(INSTALL_PROGRAM) mksplit $(dpkglibdir)/mksplit
  64. # $(INSTALL_DATA) dpkg-split.8 $(man8dir)/dpkg-split.$(man8)