You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- CFLAGS = -g
- INCLUDE = -I/usr/include -I.
- LIBS = -larchive
-
- PYVER ?= 2.7
-
- all: __libarchive.so
-
- _libarchive_wrap.c: _libarchive.i
- swig -python -shadow _libarchive.i
-
- _libarchive_wrap.o: _libarchive_wrap.c
- ${CC} -c ${CFLAGS} -fPIC ${INCLUDE} $$(python${PYVER}-config --cflags) _libarchive_wrap.c
-
- __libarchive.so: _libarchive_wrap.o
- ${CC} _libarchive_wrap.o -shared $$(python${PYVER}-config --ldflags) -o __libarchive.so ${LIBS}
-
- clean:
- rm -f *.o *.so *.pyc
|