forked from Lainports/freebsd-ports
user to slow down jobs that would otherwise choke the processor. It is also helpful on laptops where we want to avoid genrating a lot of heat. WWW: http://cpulimit.sourceforge.net/ PR: ports/156064 Submitted by: Jesse <jessefrgsmith@yahoo.ca>
19 lines
398 B
Text
19 lines
398 B
Text
--- Makefile.old 2005-06-24 07:53:43.000000000 -0300
|
|
+++ Makefile 2010-08-21 15:10:45.000000000 -0300
|
|
@@ -1,7 +1,15 @@
|
|
+PREFIX=/usr/local
|
|
+
|
|
all:: cpulimit
|
|
|
|
cpulimit: cpulimit.c
|
|
- gcc -o cpulimit cpulimit.c -lrt -Wall -O2
|
|
+ gcc -o cpulimit cpulimit.c -lrt -Wall -O2 -lkvm
|
|
+
|
|
+install: cpulimit
|
|
+ cp cpulimit ${PREFIX}/bin
|
|
+
|
|
+deinstall:
|
|
+ rm -f ${PREFIX}/bin/cpulimit
|
|
|
|
clean:
|
|
rm -f *~ cpulimit
|