summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--Makefile.in4
-rw-r--r--tests/Makefile9
3 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e37458f..44c0bb7 100644
--- a/Makefile
+++ b/Makefile
@@ -44,6 +44,9 @@ libcgroup.so: api.c libcgroup.h wrapper.c
wrapper.c
ln -sf $@ $@.$(VERSION)
+test:
+ $(MAKE) -C tests
+
install: libcgroup.so
$(INSTALL_DATA) -D libcgroup.h $(DESTDIR)$(includedir)/libcgroup.h
$(INSTALL) -D libcgroup.so $(DESTDIR)$(libdir)/libcgroup-$(PACKAGE_VERSION).so
@@ -59,3 +62,4 @@ uninstall: libcgroup.so
clean:
\rm -f y.tab.c y.tab.h lex.yy.c y.output cgconfig libcgroup.so \
libcgroup.so.$(VERSION)
+ $(MAKE) -C tests clean
diff --git a/Makefile.in b/Makefile.in
index 172b225..5bef04e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -44,6 +44,9 @@ libcgroup.so: api.c libcgroup.h wrapper.c
wrapper.c
ln -sf $@ $@.$(VERSION)
+test:
+ $(MAKE) -C tests
+
install: libcgroup.so
$(INSTALL_DATA) -D libcgroup.h $(DESTDIR)$(includedir)/libcgroup.h
$(INSTALL) -D libcgroup.so $(DESTDIR)$(libdir)/libcgroup-$(PACKAGE_VERSION).so
@@ -59,3 +62,4 @@ uninstall: libcgroup.so
clean:
\rm -f y.tab.c y.tab.h lex.yy.c y.output cgconfig libcgroup.so \
libcgroup.so.$(VERSION)
+ $(MAKE) -C tests clean
diff --git a/tests/Makefile b/tests/Makefile
index 707302a..1c0bc58 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -3,6 +3,15 @@ LIBS = -lcgroup
INC = -I ..
CXXFLAGS = -g -O2 -Wall -DDEBUG $(INC)
+TARGET= libcgrouptest01 \
+ libcg_ba
+
+all: $(TARGET)
+
+
+libcgrouptest01: libcgrouptest01.c
+ $(CXX) $(CXXFLAGS) -o $@ $< $(LDFLAGS) $(LIBS)
+
libcg_ba: libcg_ba.cpp
$(CXX) $(CXXFLAGS) -o $@ $< $(LDFLAGS) $(LIBS)