aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
authorAngelo Marletta <angelo.marletta@gmail.com>2012-06-20 02:48:05 +0100
committerAngelo Marletta <angelo.marletta@gmail.com>2012-06-20 02:48:05 +0100
commitc08039365f62abe5f180c9c3c6c3f8fac6feb378 (patch)
tree8e5e20b979437b78ec0fc5b6e8e6baf79d1aa6a1 /tests/Makefile
parent01a76753a060c27e26ac691c0d69f99b975038e5 (diff)
downloadcpulimit-c08039365f62abe5f180c9c3c6c3f8fac6feb378.tar.gz
added process_group and test. all tests pass
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile13
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)
Un proyecto texto-plano.xyz