ifneq ($(shell uname -m), i386)
arch = -m32
- sdl_ldflags = -L/usr/lib/i386-linux-gnu -lSDL
+ sdl_ldflags = -L/usr/lib/i386-linux-gnu -lSDL-1.2
else
sdl_ldflags = `sdl-config --libs`
endif
root = ../..
CFLAGS = -pedantic -Wall -g -I$(root)/libs/imago/src
-LDFLAGS = -L$(root)/libs/imago -limago
+LDFLAGS = -L$(root)/libs/imago -limago -lm
$(bin): $(obj)
$(CC) -o $@ $(obj) $(LDFLAGS)
# process embedded images
if [ ! -f tools/img2bin/img2bin ]; then
- make -C tools/img2bin/img2bin || exit 1
+ make -C tools/img2bin || exit 1
fi
alias img2bin=tools/img2bin/img2bin