xref: /freebsd/contrib/unifdef/INSTALL (revision a90b9d0159070121c221b966469c3e36d912bf82)
1unifdef installation instructions
2---------------------------------
3
4Dependencies:
5 * unifdef is mostly ANSI C, with a few unixisms
6 * unifdefall is a Unix shell script
7 * the manual uses the nroff mdoc macros
8 * the support and test scripts are Unix shell scripts
9
10To build on Unix, type `make`. You can adjust the compilation options
11using the POSIX standard CFLAGS and LDFLAGS make variables.
12
13To install in your home directory, type `make install`
14or to install in /usr type `make prefix=/usr install`.
15See the start of the Makefile for the install location
16variables.
17
18The win32 subdirectory contains build files for MinGW and Visual
19Studio 2010 which make use of the FreeBSD code plus some other
20portability wrappers.
21
22To build with MinGW, type `mingw32-make -f win32/Makefile.mingw`.
23
24Unlike the Unix Makefile, the Windows builds do not automatically
25create or update version.h. The release tar and zip files include a
26pre-generated version.h but the git repository does not. To build from
27a git clone you need a Unix shell environment, which you can get as
28part of GitHub for Windows - http://windows.github.com/
29To update version.h, right-click on the fanf2/unifdef repository and
30select "open a shell here", then type `sh scripts\reversion.sh`.
31
32We assume Unix provides the BSD err.h functions and C99 stdbool.h. The
33FreeBSD subdirectory has copies of err.c and getopt.c for systems such
34as Windows that don't have them built in.
35
36- end -
37