diff options
Diffstat (limited to 'python/Makefile.in')
-rw-r--r-- | python/Makefile.in | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/python/Makefile.in b/python/Makefile.in new file mode 100644 index 000000000..a87ee4c2d --- /dev/null +++ b/python/Makefile.in @@ -0,0 +1,25 @@ +CC=@CC@ +CFLAGS=-I. -I../src/include -I./src/lib/third_party/include -shared -Wl, +LIBNDPI=../src/lib/libndpi.so.@NDPI_VERSION_SHORT@ +LDFLAGS=$(CFILE) $(LIBNDPI) -lpcap +SHARE = -soname,ndpi_wrap +SO=ndpi_wrap.so +OBJS = ndpi_wrap.o +CFILE = ndpi_wrap.c +PIC = -fPIC +PREFIX?=/usr/local +.PHONY: all + +UNAME_S := $(shell uname -s) +ifeq ($(UNAME_S),Darwin)#do something for linux + SHARE=-install_name,ndpiReader.so +endif + +all: $(SO) + +$(SO): $(CFILE) $(LIBNDPI) + $(CC) $(CFLAGS)$(SHARE) -o $@ $(PIC) $(LDFLAGS) + ln -s $(LIBNDPI) . + +clean: + /bin/rm -f $(SO) |