rt2x00 fixes (thanks to sn9):
[openwrt.git] / package / comgt / patches / 001-Makefile.patch
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 -# martin@gregorie.org, paul@peck.org.uk
19 +# martin@gregorie.org
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
43 all: $(BIN)
44
45 install:
46 + mv ($BIN} {$BIN2}
47 chmod a-w $(BIN)
48 chmod u+rw $(BIN)
49 chmod a+x $(BIN)
50 - cp $(BIN) $(EXE)
51 + cp $(BIN) $(EXE)/gcom
52 chmod a-wx $(MANP)
53 chmod u+rw $(MANP)
54 chmod a+r $(MANP)
55 cp $(MANP) $(MAN)
56 - -mkdir $(SCRIPTPATH)
57 - chmod a-w $(SCRIPTPATH)
58 - chmod u+rw $(SCRIPTPATH)
59 - chmod a+x $(SCRIPTPATH)
60 - cp -f $(SCRIPTSRC)* $(SCRIPTPATH)
61 - chmod a-w $(SCRIPTPATH)*
62 - chmod u+rw $(SCRIPTPATH)*
63 - chmod a+x $(SCRIPTPATH)*
64 -
65 -
66 -
67
68 uninstall:
69 cd $(EXE); rm $(BIN)
70 cd $(MAN); rm $(MANP)
71 - -rm -r $(SCRIPTPATH)
72
73 clean:
74 - -rm *.o
75 - -rm $(CPROG)
76 - -rm *~
77 - -rm $(SCRIPTSRC)*~
78 + rm *.o $(CPROG)
79
80
81 -comgt: comgt.o
82 - cc comgt.o $(LDFLAGS) -o comgt
83 +gcom: gcom.o
84 + $(CC) gcom.o $(LDFLAGS) -o gcom
85
86 -comgt.o: comgt.c comgt.h
87 - cc comgt.c $(CFLAGS)
88 +gcom.o: comgt.c comgt.h
89 + $(CC) -c $(CFLAGS) comgt.c -o gcom.o
90
This page took 0.060768 seconds and 5 git commands to generate.