summaryrefslogtreecommitdiff
path: root/sys-process/atop/files/atop-2.7.0-netatop-makefile.patch
blob: bd2f17658cf878f34f5614b6a5777db3aa9eab8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
--- a/daemon/Makefile
+++ b/daemon/Makefile
@@ -6,7 +6,7 @@
 all:		netatopd
 
 netatopd:	netatopd.o Makefile
-		$(CC) netatopd.o -o netatopd -lz
+		$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) netatopd.o -o netatopd -lz
 
 clean:
 		rm -f *.o netatopd
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 all:
 		./mkversion
-		cd module; make
-		cd daemon; make
+		cd module; $(MAKE)
+		cd daemon; $(MAKE)
 
 install:	module/netatop.ko daemon/netatopd
 		install -d /lib/modules/`uname -r`/extra
@@ -14,5 +14,5 @@
 		install man/netatopd.8 -t /usr/share/man/man8
 
 clean:
-		cd module; make clean
-		cd daemon; make clean
+		cd module; $(MAKE) clean
+		cd daemon; $(MAKE) clean
--- a/module/Makefile
+++ b/module/Makefile
@@ -7,7 +7,7 @@
 
 $(MYMODULE).ko: $(MYMODULE).c 
 		echo start the make
-		make -C $(KERNDIR) M=$(THISDIR) modules
+		$(MAKE) -C $(KERNDIR) M=$(THISDIR) modules
 
 clean:
 	rm -f *.o *.ko