aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example/Makefile.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/example/Makefile.in b/example/Makefile.in
new file mode 100644
index 000000000..5aa175309
--- /dev/null
+++ b/example/Makefile.in
@@ -0,0 +1,20 @@
+CC=@CC@
+CFLAGS=-g -I../src/include @CFLAGS@
+LIBNDPI=../src/lib/libndpi.a
+LDFLAGS=$(LIBNDPI) -lpcap @LDFLAGS@
+OBJS=ndpiReader.o ndpi_util.o
+
+all: ndpiReader
+
+ndpiReader: $(OBJS) $(LIBNDPI)
+ $(CC) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS)
+
+%.o: %.c $(HEADERS) Makefile
+ $(CC) $(CFLAGS) -c $< -o $@
+
+install:
+ cp ndpiReader /usr/local/bin
+
+clean:
+ /bin/rm *.o ndpiReader
+