blob: 30710369fd4695432e8550273c484a67eb6cca8f (
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
+ $(MAKE) -C module
+ $(MAKE) -C daemon
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
+ $(MAKE) -C module clean
+ $(MAKE) -C daemon 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
|