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
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
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
16 -# martin@gregorie.org, paul@peck.org.uk
17 +# martin@gregorie.org
19 -# $Id: Makefile,v 1.4 2006/10/20 14:30:19 pharscape Exp $
24 -LIB = -L/usr/local/lib
25 -INC = -I/usr/local/include
27 MAN = /usr/share/man/man1
29 -SCRIPTPATH = /etc/comgt/
30 -SCRIPTSRC = ./scripts/
32 -MANP = comgt.1 sigmon.1
38 +BIN = $(CPROG) $(SCRIPT)
39 +MANP = gcom.1 sigmon.1
49 + cp $(BIN) $(EXE)/gcom
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)*
69 - -rm -r $(SCRIPTPATH)
80 - cc comgt.o $(LDFLAGS) -o comgt
82 + $(CC) gcom.o $(LDFLAGS) -o gcom
84 -comgt.o: comgt.c comgt.h
85 - cc comgt.c $(CFLAGS)
86 +gcom.o: comgt.c comgt.h
87 + $(CC) -c $(CFLAGS) comgt.c -o gcom.o