summaryrefslogtreecommitdiff
path: root/Objective-C/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Objective-C/GNUmakefile')
-rw-r--r--Objective-C/GNUmakefile11
1 files changed, 9 insertions, 2 deletions
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)