Re: [dev] Reasonable Makefiles

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Mon, 10 Mar 2014 22:00:50 +0100

> 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

This archive was generated by hypermail 2.3.0 : Mon Mar 10 2014 - 22:12:07 CET