Makefile.am 872 B

123456789101112131415161718192021
  1. INCLUDEDIRS = -I$(top_builddir)/src -I$(top_builddir)/src/util -I$(top_builddir)/examples/src
  2. AM_CFLAGS = $(GLOBAL_AM_CFLAGS) $(INCLUDEDIRS)
  3. WRAPPER_DIR = $(top_builddir)/wrappers
  4. open62541.lua open62541_wrap_lua.c:
  5. swig -lua $(INCLUDEDIRS) -o ./open62541_wrap_lua.c $(WRAPPER_DIR)/open62541.i
  6. networklayer.so:
  7. gcc -c $(AM_CFLAGS) $(top_builddir)/examples/src/networklayer.c -o networklayer.so
  8. open62541_wrap_lua.o: open62541_wrap_lua.c
  9. gcc -c $(subst -Wall, ,$(subst -Wreturn-type, ,$(subst -pedantic, , $(AM_CFLAGS)))) -I/usr/include/lua5.2 open62541_wrap_lua.c
  10. open62541.so: networklayer.so open62541_wrap_lua.o
  11. ld -shared open62541_wrap_lua.o networklayer.so $(top_builddir)/lib/libopen62541.so -o open62541.so
  12. all: open62541.lua open62541.so
  13. clean-local:
  14. rm -rf networklayer.so open62541.lua open62541.so open62541_wrap_lua.c open62541_wrap_lua.o || true;