You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ea...@apache.org on 2007/02/06 23:11:33 UTC
svn commit: r504326 - in /incubator/uima/uimacpp/trunk:
scriptators/python/Makefile src/base.mak
Author: eae
Date: Tue Feb 6 14:11:33 2007
New Revision: 504326
URL: http://svn.apache.org/viewvc?view=rev&rev=504326
Log:
python bug on MacOSX
Modified:
incubator/uima/uimacpp/trunk/scriptators/python/Makefile
incubator/uima/uimacpp/trunk/src/base.mak
Modified: incubator/uima/uimacpp/trunk/scriptators/python/Makefile
URL: http://svn.apache.org/viewvc/incubator/uima/uimacpp/trunk/scriptators/python/Makefile?view=diff&rev=504326&r1=504325&r2=504326
==============================================================================
--- incubator/uima/uimacpp/trunk/scriptators/python/Makefile (original)
+++ incubator/uima/uimacpp/trunk/scriptators/python/Makefile Tue Feb 6 14:11:33 2007
@@ -44,6 +44,13 @@
# build a shared library
DLL_BUILD=1
+#python bug(?) on MacOSX: PyImport_ImportModule() is looking for .so!
+UNAME = $(shell uname -s)
+ifeq ($(UNAME), Darwin)
+ DLL_SUFFIX=dylib
+ USER_XTARGET=$(TARGET_FILE).so
+endif
+
# include file with generic compiler instructions
include $(UIMACPP_HOME)/lib/base.mak
###################################
@@ -55,6 +62,9 @@
swig -outdir . -c++ -python -external-runtime $@
pythonnator.o: $(SWIGDEPS)
+
+$(USER_XTARGET): $(TARGET_FILE).$(DLL_SUFFIX)
+ ln -s $(TARGET_FILE).$(DLL_SUFFIX) $(USER_XTARGET)
uima_wrap.o: uima_wrap.cxx
$(CC) $(CFLAGS) -c $<
Modified: incubator/uima/uimacpp/trunk/src/base.mak
URL: http://svn.apache.org/viewvc/incubator/uima/uimacpp/trunk/src/base.mak?view=diff&rev=504326&r1=504325&r2=504326
==============================================================================
--- incubator/uima/uimacpp/trunk/src/base.mak (original)
+++ incubator/uima/uimacpp/trunk/src/base.mak Tue Feb 6 14:11:33 2007
@@ -43,6 +43,7 @@
#
# USER_CLFAGS to specify additional compiler parameters
# USER_LINKFLAGS to specify additional linker parameters
+# USER_XTARGET to specify extra user target to build
#
#############################################################################
@@ -107,7 +108,7 @@
.c.o :
$(CC) $(CFLAGS) -c $<
-all: $(TARGET_FILE_NAME)
+all: $(TARGET_FILE_NAME) $(USER_XTARGET)
$(TARGET_FILE_NAME): $(OBJS)
$(CC) $(OBJS) \
@@ -117,3 +118,4 @@
clean:
-rm -f $(OBJS)
-rm -f $(TARGET_FILE_NAME)
+ -rm -f $(USER_XTARGET)