diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-01-14 16:37:55 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 16:37:55 -0800 |
commit | 98d9f524f9ff7746d0345939fe543020f8057212 (patch) | |
tree | 48e4ea771190e14c26d23b4981253f72e7a3b5d5 /example | |
parent | 0023a96f804945602ac1fc0d1460b246d2ab842e (diff) | |
parent | 10738a0ca334104377e19a1e683bd13f2451a9e2 (diff) |
Merge pull request #830 from catenacyber/fuzzpcap
Adds another fuzz target
Diffstat (limited to 'example')
-rw-r--r-- | example/Makefile.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/example/Makefile.in b/example/Makefile.in index bda7cbe9e..cc47b3047 100644 --- a/example/Makefile.in +++ b/example/Makefile.in @@ -11,8 +11,14 @@ PREFIX?=@prefix@ all: ndpiReader @DPDK_TARGET@ -ndpiReader: $(OBJS) $(LIBNDPI) - $(CXX) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS) +EXECUTABLE_SOURCES := ndpiReader.c +COMMON_SOURCES := $(filter-out $(EXECUTABLE_SOURCES),$(wildcard *.c )) + +libndpiReader.a: $(COMMON_SOURCES:%.c=%.o) $(LIBNDPI) + ar rsv libndpiReader.a $(COMMON_SOURCES:%.c=%.o) + +ndpiReader: libndpiReader.a $(LIBNDPI) $(EXECUTABLE_SOURCES:%.c=%.o) + $(CXX) $(CFLAGS) $(EXECUTABLE_SOURCES:%.c=%.o) libndpiReader.a -o $@ $(LDFLAGS) %.o: %.c $(HEADERS) Makefile $(CC) $(CFLAGS) -c $< -o $@ |