Re: [gentoo-dev] [rfc] Making a Makefile respect custom CFLAGS

2010-08-23 Thread Michał Górny
On Mon, 23 Aug 2010 23:01:10 +0200 Sebastian Pipping wrote: > 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

Re: [gentoo-dev] [rfc] Making a Makefile respect custom CFLAGS

2010-08-23 Thread Mike Frysinger
On Monday, August 23, 2010 17:01:10 Sebastian Pipping wrote: > CFLAGS=`sdl-config --cflags` -Wall -Wextra > LDFLAGS=`sdl-config --libs` SDL_CONFIG = sdl-config CPPFLAGS += `$(SDL_CONFIG) --cflags` CFLAGS += -Wall -Wextra LDLIBS += `$(SDL_CONFIG) --libs` although the SDL_CONFIG is crap anyways

[gentoo-dev] [rfc] Making a Makefile respect custom CFLAGS

2010-08-23 Thread Sebastian Pipping
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 cus