aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/comgt/patches/001-compile_fix.patch
blob: 15de850b73a9e620495e352d7eb53bc41295afaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,7 @@ SCRIPTPATH = /etc/comgt/
 SCRIPTSRC = ./scripts/
 BIN     = $(CPROG) 
 MANP	= comgt.1 sigmon.1
+CC	= cc
 
 CFLAGS  = -c
 LDFLAGS =
@@ -70,10 +71,5 @@ clean:
 	-rm *~
 	-rm $(SCRIPTSRC)*~
 
-
-comgt: comgt.o
-	cc comgt.o $(LDFLAGS) -o comgt
-
-comgt.o: comgt.c comgt.h
-	cc comgt.c $(CFLAGS) 
-
+comgt:  comgt.c comgt.h
+	$(CC) $(CFLAGS) -o comgt $< $(LDFLAGS)