fixed procdata and 32bit build
authorJohn Tsiombikas <nuclear@member.fsf.org>
Mon, 23 Dec 2019 17:14:11 +0000 (19:14 +0200)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Mon, 23 Dec 2019 17:14:11 +0000 (19:14 +0200)
GNUmakefile
tools/img2bin/Makefile
tools/procdata

index 057ccfb..6e91ee8 100644 (file)
@@ -15,7 +15,7 @@ LDFLAGS = $(arch) -Llibs/imago -Llibs/mikmod -limago -lmikmod $(sdl_ldflags) -lm
 
 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
index c9423c3..b6e9f4e 100644 (file)
@@ -4,7 +4,7 @@ bin = img2bin
 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)
index 25136ad..29076a6 100755 (executable)
@@ -8,7 +8,7 @@ fi
 
 # 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