Hello!

I assume this Makefile to work with any non-GNU make:

  CFLAGS=`sdl-config --cflags` -Wall -Wextra
  LDFLAGS=`sdl-config --libs`
  OBJ=tron.o pixel.o

  .PHONY: clean run

  tron: $(OBJ)

  run: tron
        ./tron

  clean:
        rm -f *.o tron

Now how would we fix this to respect custom CFLAGS (and LDFLAGS) in a
way that does not require GNU make (i.e. simply-expanded variables):

   "[Recursively-expanded variables are] the only sort supported
    by other versions of make". [1]

Any proposals for a generic solution that is upstream-suitable?
While the Makefile presented here is not likely to go into the tree I
had similar cases before so I felt like bringing this up.  Thanks!

Best,



Sebastian


[1] http://www.gnu.org/software/make/manual/make.html#Flavors

Reply via email to