001-Makefile.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Index: comgt.0.32/Makefile
  2. ===================================================================
  3. --- comgt.0.32.orig/Makefile 2007-06-04 13:22:22.665409616 +0200
  4. +++ comgt.0.32/Makefile 2007-06-04 13:22:22.730399736 +0200
  5. @@ -1,7 +1,6 @@
  6. #
  7. -# Makefile - build and install the comgt package
  8. +# Makefile - build and install the gmon package
  9. # Copyright (C) 2005 Martin Gregorie
  10. -# Copyright (C) 2006 Paul Hardwick
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. @@ -17,63 +16,41 @@
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. #
  18. -# [email protected], [email protected]
  19. +# [email protected]
  20. #
  21. -# $Id: Makefile,v 1.4 2006/10/20 14:30:19 pharscape Exp $
  22. +# $Id$
  23. #
  24. -#
  25. -
  26. -LIB = -L/usr/local/lib
  27. -INC = -I/usr/local/include
  28. EXE = /usr/local/bin
  29. MAN = /usr/share/man/man1
  30. -CPROG = comgt
  31. -SCRIPTPATH = /etc/comgt/
  32. -SCRIPTSRC = ./scripts/
  33. -BIN = $(CPROG)
  34. -MANP = comgt.1 sigmon.1
  35. -
  36. -CFLAGS = -c
  37. -LDFLAGS =
  38. +CPROG = gcom
  39. +SCRIPT = sigmon
  40. +BIN = $(CPROG) $(SCRIPT)
  41. +MANP = gcom.1 sigmon.1
  42. all: $(BIN)
  43. install:
  44. + mv ($BIN} {$BIN2}
  45. chmod a-w $(BIN)
  46. chmod u+rw $(BIN)
  47. chmod a+x $(BIN)
  48. - cp $(BIN) $(EXE)
  49. + cp $(BIN) $(EXE)/gcom
  50. chmod a-wx $(MANP)
  51. chmod u+rw $(MANP)
  52. chmod a+r $(MANP)
  53. cp $(MANP) $(MAN)
  54. - -mkdir $(SCRIPTPATH)
  55. - chmod a-w $(SCRIPTPATH)
  56. - chmod u+rw $(SCRIPTPATH)
  57. - chmod a+x $(SCRIPTPATH)
  58. - cp -f $(SCRIPTSRC)* $(SCRIPTPATH)
  59. - chmod a-w $(SCRIPTPATH)*
  60. - chmod u+rw $(SCRIPTPATH)*
  61. - chmod a+x $(SCRIPTPATH)*
  62. -
  63. -
  64. -
  65. uninstall:
  66. cd $(EXE); rm $(BIN)
  67. cd $(MAN); rm $(MANP)
  68. - -rm -r $(SCRIPTPATH)
  69. clean:
  70. - -rm *.o
  71. - -rm $(CPROG)
  72. - -rm *~
  73. - -rm $(SCRIPTSRC)*~
  74. + rm *.o $(CPROG)
  75. -comgt: comgt.o
  76. - cc comgt.o $(LDFLAGS) -o comgt
  77. +gcom: gcom.o
  78. + $(CC) gcom.o $(LDFLAGS) -o gcom
  79. -comgt.o: comgt.c comgt.h
  80. - cc comgt.c $(CFLAGS)
  81. +gcom.o: comgt.c comgt.h
  82. + $(CC) -c $(CFLAGS) comgt.c -o gcom.o