001-Makefile.patch 1.8 KB

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