summaryrefslogtreecommitdiff
path: root/Objective-C/GNUmakefile
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2007-09-15 16:57:05 +0200
committerMatthias Benkard <code@mail.matthias.benkard.de>2007-09-15 16:57:05 +0200
commit7ea325733688c78da09d5e0e276803a9f6b3e63d (patch)
tree2fc1e549dad06e71a234c27465d3ce2cf60536d2 /Objective-C/GNUmakefile
parent585f55e70e44cccb0807c2bc2d1f0904c8fbc5e1 (diff)
Make the libffi support code from PyObjC compilable stand-alone.
darcs-hash:f691f757ec2c57915f7b653118183759d8ac590a
Diffstat (limited to 'Objective-C/GNUmakefile')
-rw-r--r--Objective-C/GNUmakefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Objective-C/GNUmakefile b/Objective-C/GNUmakefile
index 92934ed..4552e69 100644
--- a/Objective-C/GNUmakefile
+++ b/Objective-C/GNUmakefile
@@ -2,15 +2,20 @@ include $(GNUSTEP_MAKEFILES)/common.make
include ../version.make
+USE_LIBFFI = 1
+
LIBRARY_NAME = libobjcl
RPM_DISABLE_RELOCATABLE = YES
ADDITIONAL_OBJCFLAGS = -Wall -g -DVERSION=\"$(VERSION)\" -I/usr/local/include
-ADDITIONAL_LDFLAGS = -lffi
-ADDITIONAL_OBJCFLAGS += -DUSE_LIBFFI
-
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)
+ifdef USE_LIBFFI
+ADDITIONAL_LDFLAGS = -lffi
+ADDITIONAL_OBJCFLAGS += -DUSE_LIBFFI
+libobjcl_OBJC_FILES += libffi_support.m
+endif
+
include $(GNUSTEP_MAKEFILES)/library.make