[cs631apue] Makefile in different platforms
Jan Schaumann
jschauma at stevens.edu
Sun Dec 15 22:16:48 EST 2013
Hongyi Shen <hshen4 at stevens.edu> wrote:
> According to some material, my Makefile has something like this:
>
> ROOT=.
> PLATFORM=$(shell uname -s)
> include $(ROOT)/Make.on.$(PLATFORM)
This is GNU make syntax. On systems where make is not GNU make, this
will not work.
You can either write a portable Makefile that works on all platforms, or
you can supply per-platform Makefiles that the user would have to
choose, for example by invoking 'make -f Makefile.Linux'.
-Jan
More information about the cs631apue
mailing list