In the Makefile of epan/dissectors, I modified the AM_CPPFLAGS to add -v flag and removed the /usr/local/include that I had earlier added as hack to get the pack-ip.c to compile. Below is the verbose output from the compile
make[6]: Nothing to be done for `all'.
CC packet-ip.lo
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name packet-ip.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu penryn -target-linker-version 278.4 -v -dwarf-column-info -debug-info-kind=standalone -dwarf-version=4 -debugger-tuning=lldb -coverage-file /Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/epan/dissectors/.libs/packet-ip.o -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0 -dependency-file .deps/packet-ip.Tpo -sys-header-deps -MP -MT packet-ip.lo -isystem /usr/local/Cellar/glib/2.50.3/include/glib-2.0 -isystem /usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include -isystem /usr/local/opt/gettext/include -isystem /usr/local/Cellar/pcre/8.39/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -D HAVE_CONFIG_H -I . -I ../.. -I ../.. -I ../../epan -D _FORTIFY_SOURCE=2 -D G_DISABLE_SINGLE_INCLUDES -D G_DISABLE_DEPRECATED -D _REENTRANT -I /usr/local/Cellar/gnutls/3.5.8/include -I /usr/local/Cellar/nettle/3.3/include -I /usr/local/Cellar/libtasn1/4.10/include -I /usr/local/Cellar/p11-kit/0.23.3/include/p11-kit-1 -I /usr/local/opt/libgcrypt/include -I /usr/local/opt/libgpg-error/include -I /usr/include/libxml2 -D PIC -O2 -Werror -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wheader-guard -Wc++-compat -Wunused-const-variable -Wshadow -Wno-pointer-sign -Wold-style-definition -Wstrict-prototypes -Wshorten-64-to-32 -Werror=implicit -fdebug-compilation-dir /Users/ajasaxen/gitHubProjects/wireshark-official/wireshark/epan/dissectors -ferror-limit 19 -fmessage-length 163 -fvisibility hidden -fwrapv -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.12.0 -fencode-extended-block-signature -fmax-type-align=16 -fno-common -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o .libs/packet-ip.o -x c packet-ip.c
clang -cc1 version 8.1.0 (clang-802.0.42) default target x86_64-apple-darwin16.5.0
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/Library/Frameworks"
ignoring duplicate directory "../.."
#include "..." search starts here:
#include <...> search starts here:
.
../..
../../epan
/usr/local/Cellar/gnutls/3.5.8/include
/usr/local/Cellar/nettle/3.3/include
/usr/local/Cellar/libtasn1/4.10/include
/usr/local/Cellar/p11-kit/0.23.3/include/p11-kit-1
/usr/local/opt/libgcrypt/include
/usr/local/opt/libgpg-error/include
/usr/include/libxml2
/usr/local/Cellar/glib/2.50.3/include/glib-2.0
/usr/local/Cellar/glib/2.50.3/lib/glib-2.0/include
/usr/local/opt/gettext/include
/usr/local/Cellar/pcre/8.39/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/include
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks (framework directory)
End of search list.
packet-ip.c:63:10: fatal error: 'GeoIP.h' file not found
#include <GeoIP.h>
^
1 error generated.
make[6]: *** [packet-ip.lo] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2