Permalink
Browse files

Makefile: universal compilation

Set the minimum Mac OS X version to 10.5.

It is possible to compile these programs on Mac OS X 10.4, however
none of the useful private API functions are available there.
  • Loading branch information...
1 parent 8f08014 commit 8d99ce8566ba4cb73b2957cc3ab1ed831ccfd091 @ChrisJohnsen committed Mar 25, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 Makefile
View
@@ -1,3 +1,9 @@
+ARCHES = i386 ppc x86_64
+ARCH_FLAGS = $(ARCHES:%=-arch %)
+
+CFLAGS += $(ARCH_FLAGS) -mmacosx-version-min=10.5
+LDFLAGS += $(ARCH_FLAGS)
+
MSG_BINARIES = test user-session-wrapper
MSG_OBJECTS = $(MSG_BINARIES:%=%.o) msg.o

0 comments on commit 8d99ce8

Please sign in to comment.