From 7c986ba5b0ab45485b61fe56ba73abe1fa2507ed Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sat, 4 Jan 2014 19:57:33 +0100 Subject: Multiarch support. Run 'ARCH=amd64 make' to preseed an AMD64 ISO image, etc. --- src/fripost-partman-udeb/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/fripost-partman-udeb/Makefile') 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: -- cgit v1.2.3