fix URL in specfile - rm svn-keywords
[comgt.git] / Makefile
1 #
2 #   Makefile - build and install the gmon package
3 #   Copyright (C) 2005  Martin Gregorie
4 #
5 #   This program is free software; you can redistribute it and/or modify
6 #   it under the terms of the GNU General Public License as published by
7 #   the Free Software Foundation; either version 2 of the License, or
8 #   (at your option) any later version.
9 #
10 #    This program is distributed in the hope that it will be useful,
11 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #    GNU General Public License for more details.
14 #
15 #    You should have received a copy of the GNU General Public License
16 #    along with this program; if not, write to the Free Software
17 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 #
19 #    martin@gregorie.org
20 #
21 #       $Id$
22 #
23 LIB     = -L/usr/local/lib
24 INC     = -I/usr/local/include
25 EXE     = /usr/local/bin
26 MAN     = /usr/share/man/man1
27 CPROG   = gcom
28 SCRIPT  = sigmon
29 BIN     = $(CPROG) $(SCRIPT)
30 MANP    = gcom.1 sigmon.1
31
32 CFLAGS  = -c
33 LDFLAGS =
34
35 all: $(BIN)
36
37 install:
38         chmod a-w $(BIN)
39         chmod u+rw $(BIN)
40         chmod a+x $(BIN)
41         cp $(BIN) $(EXE)
42         chmod a-wx $(MANP)
43         chmod u+rw $(MANP)
44         chmod a+r $(MANP)
45         cp $(MANP) $(MAN)
46
47 uninstall:
48         cd $(EXE); rm $(BIN)
49         cd $(MAN); rm $(MANP)
50
51 clean:
52         rm *.o $(CPROG)
53
54
55 gcom: gcom.o
56         cc gcom.o $(LDFLAGS) -o gcom
57
58 gcom.o: gcom.c gcom.h
59         cc gcom.c $(CFLAGS) 
60