From 9b36c63c9c25c7f6c7c99ff30385a29bc51703c5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 29 Jun 2010 23:35:28 +0200 Subject: Allow both 32 and 64-bit builds on Mac OS X by passing arch --- Makerules | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Makerules') diff --git a/Makerules b/Makerules index b6ddb126..6fa2de8f 100644 --- a/Makerules +++ b/Makerules @@ -39,8 +39,20 @@ LDFLAGS += -L/usr/X11R6/lib X11LIBS := -lX11 -lXext PDFVIEW_EXE = $(X11VIEW_EXE) +ifeq "$(arch)" "amd64" +CFLAGS += -m64 +LDFLAGS += -m64 +else +CFLAGS += -m32 +LDFLAGS += -m32 +endif + ifeq "$(build)" "release" +ifeq "$(arch)" "amd64" CFLAGS += -DARCH_X86_64 +else +CFLAGS += -DARCH_X86 +endif DRAW_ARCH_SRC := archx86.c endif -- cgit v1.2.3