From d0dd29fcf87b51280dd5c2685063ea42cf4fc115 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Sat, 15 Sep 2007 14:03:32 +0200 Subject: Make the code copied from PyObjC compilable stand-alone. darcs-hash:6a1f1865b6259fc5a7551ffb10494f914359ecc6 --- Objective-C/GNUmakefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Objective-C/GNUmakefile') diff --git a/Objective-C/GNUmakefile b/Objective-C/GNUmakefile index 7cae671..33b91ac 100644 --- a/Objective-C/GNUmakefile +++ b/Objective-C/GNUmakefile @@ -5,8 +5,15 @@ include ../version.make LIBRARY_NAME = libobjcl RPM_DISABLE_RELOCATABLE = YES -ADDITIONAL_OBJCFLAGS = -Wall -g -DVERSION=\"$(VERSION)\" -#ADDITIONAL_LDFLAGS = -lavcall +ADDITIONAL_OBJCFLAGS = -Wall -g -DVERSION=\"$(VERSION)\" -I/usr/local/include + +ifdef USE_LIBFFI +ADDITIONAL_LDFLAGS = -lffi +ADDITIONAL_OBJCFLAGS += -DUSE_LIBFFI +else +ADDITIONAL_LDFLAGS = -lavcall +endif + libobjcl_OBJC_FILES = libobjcl.m objc_support.m objc-runtime-apple.m objc-runtime-gnu.m LIBRARIES_DEPEND_UPON = $(FND_LIBS) $(GUI_LIBS) $(OBJC_LIBS) $(SYSTEM_LIBS) $(CONFIG_SYSTEM_LIBS) -- cgit v1.2.3