Make – WhyNotWiki

Ethan Caldwell Blog

http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=44;filename=rules.diff;att=1;bug=402104

+ifeq ($(DEB_HOST_ARCH),amd64)
+       CFLAGS = -m32
+       ifneq ($(shell test -e /usr/lib32/libSDL.so && echo ok),ok)
+               MAKE_LINKS = mkdir -p lib \
+                       && ln -sf /usr/lib32/libSDL-1.2.so.0.11.0 lib/libSDL.so \
+                       && ln -sf /usr/lib32/libpng12.so.0.15.0 lib/libpng.so
+               LDFLAGS = -L../lib
+       endif
+else
+       CONFIGURE_LIBAO = --enable-libao
+endif