Makefile.am 740 B

12345678910111213141516171819
  1. WRAPPER_DIR = $(top_builddir)/wrappers
  2. #AM_CFLAGS = $(GLOBAL_AM_CFLAGS) -I$(WRAPPER_DIR)
  3. AM_CFLAGS = -fPIC -I$(WRAPPER_DIR)
  4. open62541.py open62541_wrap_python.c: $(WRAPPER_DIR)/open62541.i \
  5. $(WRAPPER_DIR)/open62541_expanded.h
  6. swig -python -o ./open62541_wrap_python.c $(WRAPPER_DIR)/open62541.i
  7. open62541_wrap_python.o: open62541_wrap_python.c
  8. gcc -c $(subst -pedantic, , $(AM_CFLAGS)) -I/usr/include/python2.7 open62541_wrap_python.c
  9. _open62541.so: open62541_wrap_python.o
  10. ld -shared open62541_wrap_python.o $(top_builddir)/lib/libopen62541.a -lexpat -o _open62541.so
  11. all: open62541.py _open62541.so
  12. clean-local:
  13. rm -rf open62541.py open62541.pyc _open62541.so open62541_wrap_python.c open62541_wrap_python.o || true;