summaryrefslogtreecommitdiffstats
path: root/patches/sched_switch-0.1/fix-cross-compile.patch
blob: d4939e0a499b98f3e8d1de3be699cc3d15a0a0b2 (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
Fix cross compilation

Signed-off-by: Remy Bohmer <linux@bohmer.net>
---
 Makefile |   14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

Index: sched_switch-0.1/Makefile
===================================================================
--- sched_switch-0.1.orig/Makefile
+++ sched_switch-0.1/Makefile
@@ -1 +1,13 @@
-sched_switch:
+DESTDIR =
+BINDIR = /usr/bin
+
+sched_switch: sched_switch.c Makefile
+	$(CC) sched_switch.c $(CFLAGS)  $(CPPFLAGS) $(LDFLAGS) $(XCFLAGS) -o sched_switch
+
+.PHONY: clean
+clean:
+	rm -f sched_switch
+
+.PHONY: install
+install: sched_switch
+	install -m 0755 sched_switch $(DESTDIR)$(BINDIR)/