Makefile 834 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # $Id: Makefile 2 2005-06-13 16:47:24Z bogdan_iancu $
  2. #
  3. # print example module makefile
  4. #
  5. #
  6. # WARNING: do not run this directly, it should be run by the master Makefile
  7. include ../../Makefile.defs
  8. auto_gen=
  9. NAME=app_lua.so
  10. BUILDER = $(shell which lua-config)
  11. ifeq ($(BUILDER),)
  12. BUILDER = $(shell which pkg-config)
  13. ifeq ($(BUILDER),)
  14. DEFS+=-I/usr/include/lua5.1
  15. LIBS= -llua5.1
  16. else
  17. LUALIBS = $(shell pkg-config --silence-errors --libs lua)
  18. ifeq ($(LUALIBS),)
  19. DEFS+=-I/usr/include/lua5.1
  20. LIBS= -llua5.1
  21. else
  22. DEFS+ = $(shell pkg-config --cflags lua)
  23. LIBS = $(shell pkg-config --libs lua)
  24. endif
  25. endif
  26. else
  27. DEFS+ = $(shell lua-config --include)
  28. LIBS = $(shell lua-config --libs)
  29. endif
  30. DEFS+=-DOPENSER_MOD_INTERFACE
  31. SERLIBPATH=../../lib
  32. SER_LIBS+=$(SERLIBPATH)/kcore/kcore
  33. include ../../Makefile.modules