/trunk/Examples/python/libffi/Makefile

# · Makefile · 20 lines · 16 code · 4 blank · 0 comment · 0 complexity · 72bdc0ef084b721c63d2b3b6598dd83b MD5 · raw file

  1. TOP = ../..
  2. SWIG = $(TOP)/../preinst-swig
  3. SRCS =
  4. TARGET = example
  5. INTERFACE = example.i
  6. all::
  7. $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
  8. TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' LIBS='-L/usr/local/lib -lffi' python
  9. static::
  10. $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
  11. TARGET='mypython' INTERFACE='$(INTERFACE)' python_static
  12. clean::
  13. $(MAKE) -f $(TOP)/Makefile python_clean
  14. rm -f $(TARGET).py
  15. check: all
  16. $(MAKE) -f $(TOP)/Makefile python_run