开发者

How to prepare ./configure make make install for my C file when it has other dependencies?

开发者 https://www.devze.com 2023-03-08 00:56 出处:网络
Writing/reading code seems less stress then preparing a deploy scripts such as ./configure then make and make install开发者_如何转开发 for my C application\'s. How can i make a ./configure file and ma

Writing/reading code seems less stress then preparing a deploy scripts such as ./configure then make and make install开发者_如何转开发 for my C application's. How can i make a ./configure file and make files for this following C code? Thank you for your valuable support.

@file: main.c:

#include <ptlib.h>
#include <ptlib/video.h>

#ifndef _WIN32
#ifdef H323_H46018
    #include "h460/h460_std18.h"
    H460_FEATURE(Std18);
    H460_FEATURE(Std19);
#endif

#ifdef H323_H46023
    #include "h460/h460_std23.h"
#endif
#endif // _WIN32
#define new PNEW

int main()
{
 // just assume the above works first
 return 0;
}


Running autoscan is a good start. It scans your source files and creates an initial configure.ac file (named configure.scan). Also look at ifnames to scan for your #if's.

0

精彩评论

暂无评论...
验证码 换一张
取 消