debian/copyright: update to Copyright-Format 1.0.
[debian/cpulimit.git] / Makefile
1 PREFIX?=/usr
2 CFLAGS?=-Wall -O2
3 CC?=gcc
4
5 all: cpulimit
6
7 cpulimit: cpulimit.c
8         $(CC) -o cpulimit cpulimit.c -lrt $(CFLAGS)
9
10 install: cpulimit
11         mkdir -p ${PREFIX}/bin
12         mkdir -p ${PREFIX}/share/man/man1
13         cp cpulimit ${PREFIX}/bin
14         cp cpulimit.1.gz ${PREFIX}/share/man/man1
15
16 deinstall:
17         rm -f ${PREFIX}/bin/cpulimit
18         rm -f ${PREFIX}/share/man/man1/cpulimit.1.gz
19
20 clean:
21         rm -f *~ cpulimit