git://git.onelab.eu
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add bwlimit and cpulimit modules to Python RPM
[util-vserver.git]
/
python
/
Makefile
diff --git
a/python/Makefile
b/python/Makefile
index
e1b8252
..
1e31a29
100644
(file)
--- a/
python/Makefile
+++ b/
python/Makefile
@@
-1,16
+1,15
@@
-INCLUDES := -I.. -I../lib -I/usr/include/python2.3
-CPPFLAGS = $(DEFS) $(INCLUDES)
-CFLAGS = $(CPPFLAGS) -g -Wall
-COMPILE = $(CC) $(CFLAGS)
+INCLUDES := -I.. -I../lib
LIBS = -L../lib -lvserver
LIBS = -L../lib -lvserver
-LINK = $(CC) $(LDFLAGS)
-NATIVE_MODS := vserverimpl.so
+PY_MODS := vserver.py cpulimit.py dlimit.py
+PY_EXT_MODS := vduimpl.so vserverimpl.so
-all:
$(NATIVE_MODS)
+all:
py-build
-$(NATIVE_MODS): %.so: %.o
- $(LINK) -shared -o $@ $^ $(LIBS)
+install: py-install
+ ln -s /usr/lib/util-vserver/util-vserver-vars \
+ $(INSTALL_ROOT)/usr/lib/python2.3/site-packages/util_vserver_vars.py
-%.o: %.c
- $(COMPILE) -c $<
+-include pybuild.mk
+
+.PHONY: all install