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.
精彩评论