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.

55 lines
1.7 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../ugrep/makefile.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE 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. # --- T2-COPYRIGHT-NOTE-END ---
  16. Well - the dietlibc hardcoding does not work for us. We want control over the
  17. gcc / libc used anyway - and DESTDIR, so ... a tiny rewrite was needed ...
  18. - Rene Rebe <rene@exactcode.de>
  19. --- ugrep/Makefile 2001-04-19 14:15:16.000000000 +0200
  20. +++ ugrep-fixed/Makefile 2005-02-06 12:00:42.928299424 +0100
  21. @@ -1,20 +1,23 @@
  22. -LIB=/lib
  23. +
  24. +CC = gcc -s -Os
  25. +PREFIX = usr
  26. ugrep: ugrep.o regex.o uio.o
  27. - gcc -nostdlib -s -o ugrep uio.o regex.o ugrep.o $(LIB)/dietstart.o $(LIB)/libdietc.a
  28. - strip -R .note -R .comment ugrep
  29. + $(CC) -o ugrep uio.o regex.o ugrep.o
  30. ln -fs ugrep uegrep
  31. -udgrep: ugrep.o regex.o
  32. - gcc -o udgrep ugrep.o regex.o
  33. ugrep.o: ugrep.c
  34. - gcc -g -Wall -Os -c ugrep.c
  35. + $(CC) -Wall -c ugrep.c
  36. regex.o: regex.c regex.h
  37. - gcc -g -Wall -Os -c regex.c
  38. + $(CC) -Wall -c regex.c
  39. uio.o: uio.c uio.h
  40. - gcc -g -Wall -Os -c uio.c
  41. + $(CC) -Wall -c uio.c
  42. clean:
  43. rm -f ugrep uegrep udgrep *.o
  44. tarball:
  45. cd .. && tar cvvIf ugrep.tar.bz2 ugrep
  46. +install: ugrep
  47. + cp -av ugrep $(DESTDIR)/$(PREFIX)/bin/
  48. + cp -av uegrep $(DESTDIR)/$(PREFIX)/bin/
  49. +
  50. test: ugrep
  51. ./testrun