Hello, On Fri, 8 Mar 2013 17:44:03 +0100 Alfonso Sabato Siciliano <alfi...@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 $@ > > %.o: %.c > $(CC) -c $(CFLAGS) $< This is not correct. Correct would be: CFLAGS=`sdl-config --cflags` -Wall -g LDLIBS=`sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer beret: game.o thing.o physics.o # end of file With no %.o: %.c rule at all, and with nothing for linking. Use built-in rules, they rule. -- WBR, Andrew
signature.asc
Description: PGP signature