diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2014-01-04 19:57:33 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 04:27:53 +0200 |
commit | 7c986ba5b0ab45485b61fe56ba73abe1fa2507ed (patch) | |
tree | 1fe9dbee88283e3360edad05c2ba4ccf47c2078a /src/fripost-partman-udeb/Makefile | |
parent | 5c0479ac14755429bc65c47eafec3e2bfb72431f (diff) |
Multiarch support.
Run 'ARCH=amd64 make' to preseed an AMD64 ISO image, etc.
Diffstat (limited to 'src/fripost-partman-udeb/Makefile')
-rw-r--r-- | src/fripost-partman-udeb/Makefile | 8 |
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: |