summaryrefslogtreecommitdiff
path: root/system/i8kutils/fix_Makefile.patch
blob: 38fc8d9e296f1bc8c5f5c99a942c5d392085d32f (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
diff -Naur i8kutils/Makefile i8kutils_new/Makefile
--- i8kutils/Makefile	2014-12-09 16:40:11.000000000 +0100
+++ i8kutils_new/Makefile	2015-01-31 13:15:21.031912744 +0100
@@ -14,16 +14,19 @@
 # General Public License for more details.
 
 ccflags-y = -Wall
+CC = gcc 
 
 all: i8kctl probe_i8k_calls_time
 
-i8kctl: i8kctl.c i8kctl.o
-	gcc -Wall i8kctl.c -o i8kctl
+i8kctl: i8kctl.c
+	$(CC) $(CFLAGS) $(LDFLAGS) -Wall i8kctl.c -o i8kctl
 
-probe_i8k_calls_time: probe_i8k_calls_time.c
-	gcc -Wall -c -g -DLIB i8kctl.c
-	gcc -Wall -c -g -DLIB probe_i8k_calls_time.c
-	gcc -o probe_i8k_calls_time i8kctl.o probe_i8k_calls_time.o
+i8kctl_DLIB.o: i8kctl.c
+	$(CC) $(CFLAGS) -Wall -c -g -DLIB i8kctl.c -o i8kctl_DLIB.o
+
+probe_i8k_calls_time: i8kctl_DLIB.o probe_i8k_calls_time.c
+	$(CC) $(CFLAGS) -Wall -c -g -DLIB probe_i8k_calls_time.c
+	$(CC) $(CFLAGS) $(LDFLAGS) -Wall -o probe_i8k_calls_time i8kctl_DLIB.o probe_i8k_calls_time.o
 
 i8k:
 	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules