[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian/watch for gitorious



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 $@
> 
> %.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

Attachment: signature.asc
Description: PGP signature


Reply to: