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
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
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