diff options
author | Angelo Marletta <angelo.marletta@gmail.com> | 2012-06-20 02:48:05 +0100 |
---|---|---|
committer | Angelo Marletta <angelo.marletta@gmail.com> | 2012-06-20 02:48:05 +0100 |
commit | c08039365f62abe5f180c9c3c6c3f8fac6feb378 (patch) | |
tree | 8e5e20b979437b78ec0fc5b6e8e6baf79d1aa6a1 /tests/Makefile | |
parent | 01a76753a060c27e26ac691c0d69f99b975038e5 (diff) | |
download | cpulimit-c08039365f62abe5f180c9c3c6c3f8fac6feb378.tar.gz |
added process_group and test. all tests pass
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/Makefile b/tests/Makefile index d187359..ffc80fa 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,8 +1,9 @@ CC?=gcc CFLAGS?=-Wall -g TARGETS=busy process_iterator_test -LIBS?=-lpthread - +SRC=../src +SYSLIBS?=-lpthread +LIBS=$(SRC)/list.o $(SRC)/process_iterator.o $(SRC)/process_group.o UNAME := $(shell uname) ifeq ($(UNAME), FreeBSD) @@ -11,11 +12,11 @@ endif all:: $(TARGETS) -busy: busy.c $(LIBS) - $(CC) -o busy busy.c $(LIBS) $(CFLAGS) +busy: busy.c $(SYSLIBS) + $(CC) -o busy busy.c $(SYSLIBS) $(CFLAGS) -process_iterator_test: process_iterator_test.c $(LIBS) ../src/process_iterator.o - $(CC) -I../src -o process_iterator_test process_iterator_test.c ../src/process_iterator.o $(LIBS) $(CFLAGS) +process_iterator_test: process_iterator_test.c $(LIBS) + $(CC) -I$(SRC) -o process_iterator_test process_iterator_test.c $(LIBS) $(SYSLIBS) $(CFLAGS) clean: rm -f *~ *.o $(TARGETS) |