[ar71xx] remove remaining references to dev-ap91-eth.h, patch by Stijn Tintel
[openwrt.git] / package / comgt / patches / 001-Makefile.patch
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 -# martin@gregorie.org, paul@peck.org.uk
17 +# martin@gregorie.org
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
41 all: $(BIN)
42
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
66 uninstall:
67 cd $(EXE); rm $(BIN)
68 cd $(MAN); rm $(MANP)
69 - -rm -r $(SCRIPTPATH)
70
71 clean:
72 - -rm *.o
73 - -rm $(CPROG)
74 - -rm *~
75 - -rm $(SCRIPTSRC)*~
76 + rm *.o $(CPROG)
77
78
79 -comgt: comgt.o
80 - cc comgt.o $(LDFLAGS) -o comgt
81 +gcom: gcom.o
82 + $(CC) gcom.o $(LDFLAGS) -o gcom
83
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
88
This page took 0.068551 seconds and 5 git commands to generate.