Makefile.in 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. copyingfile = $(prefix)/doc/copyright/dpkg
  21. SRC = ehandle.c mlib.c parse.c parsehelp.c fields.c dump.c nfmalloc.c \
  22. varbuf.c database.c myopt.c vercmp.c compat.c lock.c dbmodify.c \
  23. showcright.c tarfn.c star.c
  24. OBJ = ehandle.o mlib.o parse.o parsehelp.o fields.o dump.o nfmalloc.o \
  25. varbuf.o database.o myopt.o vercmp.o compat.o lock.o dbmodify.o \
  26. showcright.o tarfn.o star.o
  27. INSTALL = @INSTALL@
  28. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  29. INSTALL_DATA = @INSTALL_DATA@
  30. CC = @CC@
  31. CFLAGS = @CFLAGS@ @CWARNS@ $(XCFLAGS) -g # fixme: remove -g
  32. OPTCFLAGS = @OPTCFLAGS@
  33. LDFLAGS = -s $(XLDFLAGS)
  34. ALL_CFLAGS = -I../include -I.. @DEFS@ $(CFLAGS)
  35. ALL_CFLAGS_OPT = $(ALL_CFLAGS) $(OPTCFLAGS)
  36. AR = ar crv
  37. RANLIB = @RANLIB@
  38. .SUFFIXES: .c .o
  39. all: libdpkg.a
  40. libdpkg.a: $(OBJ)
  41. $(AR) libdpkg.a $(OBJ)
  42. $(RANLIB) libdpkg.a
  43. showcright.o: showcright.c
  44. $(CC) -DCOPYINGFILE=\"$(copyingfile)\" $(ALL_CFLAGS) -c $<
  45. .c.o:
  46. $(CC) $(ALL_CFLAGS) -c $<
  47. # These next few files are very heavily used, and should be optimised
  48. # for speed rather than space. (ALL_CFLAGS_OPT usually means -O3.)
  49. database.o: database.c
  50. $(CC) $(ALL_CFLAGS_OPT) -c $<
  51. fields.o: fields.c
  52. $(CC) $(ALL_CFLAGS_OPT) -c $<
  53. nfmalloc.o: nfmalloc.c
  54. $(CC) $(ALL_CFLAGS_OPT) -c $<
  55. parse.o: parse.c
  56. $(CC) $(ALL_CFLAGS_OPT) -c $<
  57. parsehelp.o: parsehelp.c
  58. $(CC) $(ALL_CFLAGS_OPT) -c $<
  59. varbuf.o: varbuf.c
  60. $(CC) $(ALL_CFLAGS_OPT) -c $<
  61. clean:
  62. rm -f *.o core libdpkg.a
  63. distclean: clean
  64. rm -f Makefile *.orig *~ *.~* ./#*#
  65. install: all
  66. dump.o fields.o parse.o parsehelp.o vercmp.o: parsedump.h
  67. $(OBJ): ../include/dpkg.h ../include/dpkg-db.h
  68. myopt.o: ../include/myopt.h
  69. tarfn.o star.o: ../include/tarfn.h