OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../libcsv/makefile.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- /dev/null 1970-01-01 01:00:00.000000000 +0100
  17. +++ ./Makefile 2006-10-18 18:32:18.000000000 +0200
  18. @@ -0,0 +1,35 @@
  19. +CC=gcc
  20. +AR=ar
  21. +
  22. +DESTDIR=
  23. +LIBDIR=/usr/lib
  24. +INCDIR=/usr/include
  25. +
  26. +.PHONY: all install install_headers install_shared install_static
  27. +
  28. +all: libcsv.so libcsv.a
  29. +
  30. +install: install_headers install_shared install_static
  31. +
  32. +install_headers: csv.h
  33. + mkdir -p $(DESTDIR)$(INCDIR)/libcsv/
  34. + cp -f $^ $(DESTDIR)$(INCDIR)/libcsv/
  35. +
  36. +install_shared: libcsv.so
  37. + cp -f $< $(DESTDIR)$(LIBDIR)/$<.0.9.0
  38. + ln -sf $<.0.9.0 $(DESTDIR)$(LIBDIR)/$<.0
  39. + ln -sf $<.0 $(DESTDIR)$(LIBDIR)/$<
  40. +
  41. +install_static: libcsv.a
  42. + cp -f $< $(DESTDIR)$(LIBDIR)/$<
  43. +
  44. +libcsv.o: libcsv.c csv.h
  45. + $(CC) $< -c -o $@
  46. +
  47. +libcsv.so: libcsv.o
  48. + $(CC) -shared $< -o $@
  49. +
  50. +libcsv.a: libcsv.o
  51. + $(AR) -rc $@ $^
  52. + $(AR) -s $@
  53. +