summaryrefslogtreecommitdiff
path: root/gnutls-1.1.9/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'gnutls-1.1.9/Makefile')
-rw-r--r--gnutls-1.1.9/Makefile35
1 files changed, 0 insertions, 35 deletions
diff --git a/gnutls-1.1.9/Makefile b/gnutls-1.1.9/Makefile
deleted file mode 100644
index 9f01426..0000000
--- a/gnutls-1.1.9/Makefile
+++ /dev/null
@@ -1,35 +0,0 @@
-
-export PYTHONPATH = $(PWD)
-
-HEADER_FILES = /usr/include/gnutls/gnutls.h /usr/include/gnutls/x509.h /usr/include/gnutls/openpgp.h /usr/include/gnutls/extra.h
-
-LIBRARIES = -lgnutls -lgnutls-extra
-
-all: gnutls-library
-
-gnutls-library: gnutls.xml
- mv gnutls/library/__init__.py gnutls/library/__init__.py.tmp
- touch gnutls/library/__init__.py
- xml2py gnutls.xml -o gnutls/library/constants.py -v -kde -r ".*[Tt][Ll][Ss].*"
- xml2py gnutls.xml -o gnutls/library/types.py -v -kst -r ".*[Tt][Ll][Ss].*" -m gnutls.library.constants
- xml2py gnutls.xml -o gnutls/library/functions.py -v -kf -r ".*[Tt][Ll][Ss].*" $(LIBRARIES) -m gnutls.library.types -m gnutls.library.constants
- mv gnutls/library/__init__.py.tmp gnutls/library/__init__.py
- @echo "Fixing wrong argument types"
- @CALLBACKS=`grep FUNCTYPE gnutls/library/types.py | cut -f 1 -d' '`; \
- cp gnutls/library/functions.py gnutls/library/functions.py.bak; \
- for cb in $$CALLBACKS; do \
- sed -i -r "s/POINTER\($$cb\)/$$cb/g" gnutls/library/functions.py; \
- done
- @echo "Fixing 64 bit architecture issues"
- @cp gnutls/library/types.py gnutls/library/types.py.bak; \
- sed -i -r "s/size_t = c_uint/size_t = c_size_t/g" gnutls/library/types.py; \
- sed -i -r "s/__ssize_t = c_int/__ssize_t = c_long/g" gnutls/library/types.py
-
-gnutls.xml: $(HEADER_FILES)
- h2xml $(HEADER_FILES) -o gnutls.xml -q -c
-
-clean::
- rm -rf *~ gnutls.xml gnutls/__init__.pyc
- (cd gnutls/library; rm -rf *.pyc constants.py types.py functions.py functions.py.bak)
-
-.PHONY: gnutls-library clean