diff options
author | bhackerozzo <bhackerozzo@3b445381-d045-0410-9223-e17ecdb95f4b> | 2008-02-15 16:19:33 +0000 |
---|---|---|
committer | bhackerozzo <bhackerozzo@3b445381-d045-0410-9223-e17ecdb95f4b> | 2008-02-15 16:19:33 +0000 |
commit | d0d6985abce54dd7bcf5b7702ff123330543ac15 (patch) | |
tree | 1ea9c8bfe063c58b9c1d384f99820d0388e8b286 /Makefile | |
parent | f53cf37da78bc230b0ab16cbddfc68f447222108 (diff) | |
download | cpulimit-d0d6985abce54dd7bcf5b7702ff123330543ac15.tar.gz |
experimental support for subprocesses control
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 10 insertions, 12 deletions
@@ -1,26 +1,24 @@ -CFLAGS=-Wall -O2 -D_GNU_SOURCE -TARGETS=cpulimit processtest procutils.o list.o loop +CC=gcc +CFLAGS=-Wall -D_GNU_SOURCE -O2 +TARGETS=cpulimit ptest LIBS=process.o procutils.o list.o all:: $(TARGETS) cpulimit: cpulimit.c $(LIBS) - gcc -o cpulimit cpulimit.c $(LIBS) -lrt $(CFLAGS) + $(CC) -o cpulimit cpulimit.c $(LIBS) -lrt $(CFLAGS) -processtest: processtest.c process.o - gcc -o processtest processtest.c process.o -lrt $(CFLAGS) - -loop: loop.c - gcc -o loop loop.c -lpthread $(CFLAGS) +ptest: ptest.c process.o procutils.o list.o + $(CC) -o ptest ptest.c process.o procutils.o list.o -lrt $(CFLAGS) process.o: process.c process.h - gcc -c process.c $(CFLAGS) + $(CC) -c process.c $(CFLAGS) -procutils.o: procutils.c procutils.h list.o - gcc -c procutils.c $(CFLAGS) +procutils.o: procutils.c procutils.h + $(CC) -c procutils.c $(CFLAGS) list.o: list.c list.h - gcc -c list.c $(CFLAGS) + $(CC) -c list.c $(CFLAGS) clean: rm -f *~ *.o $(TARGETS) |