Hello, On Fri, 8 Mar 2013 17:44:03 +0100 Alfonso Sabato Siciliano <alfix86@gmail.com> wrote: > CFLAGS= `sdl-config --cflags` -Wall -g > LFLAGS= `sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer > ... > beret: game.o thing.o physics.o > $(CC) $(LFLAGS) $^ -o $@ Well, I wasn't entirely correct when I said incorrect. Incorrect is calling LDLIBS LFLAGS. Also, it's a good idea to place libs after your binaries, not before. But why do that when built-in rules work just fine and make you Makefile a lot shorter? -- WBR, Andrew
Attachment:
signature.asc
Description: PGP signature