前几天由于项目需要,要在Windows上编译kerberos库,在blog上把步骤写下来;
前提需要一个porting到windows上的linux实用程序库,需要的是: sed, gawk, cat, cp。
首先需要按照下面的步骤设置编译环境:
然后按照kerberos的说明编译就行了:
1) cd xxx/src # Go to where the source lives
2) nmake -f Makefile.in prep-windows # Create Makefile for Windows
3) nmake [NODEBUG=1] [DNS-options] # Build the sources
4) nmake install [NODEBUG=1] [options] # Copy headers, libs, executables