PageRenderTime 39ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-29/SWIG/Examples/php4/variables/Makefile

#
Makefile | 37 lines | 24 code | 13 blank | 0 comment | 0 complexity | ed44b12cecf83c9c550a1b07e815bfed MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. SWIGFLAGS =
  2. C_SOURCES = example.c
  3. CXX_SOURCES =
  4. SWIG = ../../../preinst-swig
  5. all: check
  6. example_wrap.c: example.i
  7. $(SWIG) -php4 $(SWIGFLAGS) example.i
  8. OBJS= example_wrap.o $(C_SOURCES:.c=.o) $(CXX_SOURCES:.cxx=.o)
  9. PROG=php_example.so
  10. PHP_INC=`php-config --includes`
  11. CFLAGS = -fpic
  12. LDFLAGS = -shared
  13. $(PROG): $(OBJS)
  14. $(CXX) $(LDFLAGS) $(OBJS) -o $(PROG) $(EXTRA_LIB)
  15. %.o: %.cpp
  16. $(CXX) $(PHP_INC) $(CFLAGS) -c $<
  17. %.o: %.cxx
  18. $(CXX) $(PHP_INC) $(CFLAGS) -c $<
  19. %.o: %.c
  20. $(CC) $(PHP_INC) $(CFLAGS) -c $<
  21. check: $(PROG)
  22. @php -d extension_dir=. runme.php4
  23. clean:
  24. rm -f example_wrap.* *.o *~ *.so core example.php php_example.h