aboutsummaryrefslogtreecommitdiffstats
path: root/src/fripost-partman-udeb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/fripost-partman-udeb/Makefile')
-rw-r--r--src/fripost-partman-udeb/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fripost-partman-udeb/Makefile b/src/fripost-partman-udeb/Makefile
index b1f19cf..a1e0e73 100644
--- a/src/fripost-partman-udeb/Makefile
+++ b/src/fripost-partman-udeb/Makefile
@@ -1,12 +1,18 @@
CC ?= gcc
CFLAGS ?= -Wall -x c -s
+ifeq (${ARCH}, amd64)
+CFLAGS += -m64
+endif
+ifeq (${ARCH}, i386)
+CFLAGS += -m32
+endif
+
LIBS = lib/stdbuf.so
all: ${LIBS}
%.so: %.c
- # TODO: multiarch (-m32/-m64)
${CC} ${CFLAGS} $< -fPIC -shared -o $@
clean: