Load cpulimit/ into cpulimit/branches/upstream/current.
[debian/cpulimit.git] / Makefile
1 CC=gcc
2 CFLAGS=-Wall -D_GNU_SOURCE -O2
3 TARGETS=cpulimit ptest
4 LIBS=process.o procutils.o list.o
5
6 all::   $(TARGETS)
7
8 cpulimit:       cpulimit.c $(LIBS)
9         $(CC) -o cpulimit cpulimit.c $(LIBS) -lrt $(CFLAGS)
10
11 process.o: process.c process.h
12         $(CC) -c process.c $(CFLAGS)
13
14 procutils.o: procutils.c procutils.h
15         $(CC) -c procutils.c $(CFLAGS)
16
17 list.o: list.c list.h
18         $(CC) -c list.c $(CFLAGS)
19
20 ptest: ptest.c
21         $(CC) -o ptest ptest.c -lrt $(CFLAGS)
22
23 clean:
24         rm -f *~ *.o $(TARGETS)
25