Add 03_Makefile.patch: allows to set CFLAGS; use CFLAGS in
[debian/cpulimit.git] / debian / patches / 03_Makefile.patch
1 Author: Cesare Tirabassi <norsetto@ubuntu.com>
2 Description: allow to pass CFLAGS from debian/rules
3
4 --- cpulimit-1.1.orig/Makefile
5 +++ cpulimit-1.1/Makefile
6 @@ -1,7 +1,9 @@
7 +CFLAGS?=-Wall -O2
8 +
9  all::  cpulimit
10  
11  cpulimit:      cpulimit.c
12 -       gcc -o cpulimit cpulimit.c -lrt -Wall -O2
13 +       gcc -o cpulimit cpulimit.c -lrt $(CFLAGS)
14  
15  clean:
16         rm -f *~ cpulimit