I am developing an application which depends on libpcap and want to know how to write the gnu makefile such that i can check for installation of libpcap on a machine before proceeding with the installation of my application.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If libpcap supports it, you might try using pkg-config. (I know that libpcap++ supports it, but not sure about libpcap). That said, if you don’t already have an established build system, then I suggest you try using CMake which makes this kind of thing and all other aspects of creating a C++ project significantly simpler. For an example or getting started quickly using CMake, see the C++ Project Template.