> So the Makefile has this:
>
> all: autoconfig $(BIN)
>
> autoconfig:
> sh config.uname >> config.mk
> touch $_AT_
>
> and config.uname is a shell script along these lines:
>
> #!/bin/sh
>
> os=`uname`
>
> case $os in
> Darwin )
> echo 'Configuring for Darwin' >&2
> echo '# Extra configuration for Darwin (from config.uname)'
> echo 'EXTRA_CPPFLAGS = -I/opt/local/include'
> ;;
> esac
>
It is similar to the configure of utmp, and usually it is the only thing
you need.
Regards,
--
Roberto E. Vargas Caballero
Received on Mon Mar 10 2014 - 22:00:50 CET