Compile _proxy.c even if _runme.c does not exist.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-c@13195 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d9c2e44b25
commit
5db9c97963
2 changed files with 5 additions and 2 deletions
|
|
@ -53,9 +53,10 @@ XLIB = @XLIBSW@
|
|||
XINCLUDE = @XINCLUDES@
|
||||
|
||||
IWRAP = $(INTERFACE:.i=_wrap.i)
|
||||
IPROXYSRCS = $(INTERFACE:.i=_proxy.c)
|
||||
ISRCS = $(IWRAP:.i=.c)
|
||||
ICXXSRCS = $(IWRAP:.i=.cxx)
|
||||
IOBJS = $(IWRAP:.i=.@OBJEXT@)
|
||||
IOBJS = $(IWRAP:.i=.o) $(IPROXYSRCS:.c:.o)
|
||||
|
||||
##################################################################
|
||||
# Dynamic loading for C++
|
||||
|
|
@ -1180,11 +1181,13 @@ C_SO = @C_SO@
|
|||
c: $(SRCS)
|
||||
$(SWIG) -c $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(ISRCS) $(SRCS) $(INCLUDES)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(IPROXYSRCS) $(INCLUDES)
|
||||
$(C_LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(CLIBPREFIX)$(TARGET)$(C_SO)
|
||||
|
||||
c_cpp: $(SRCS)
|
||||
$(SWIG) -c++ -c $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(CXX) -c $(CCSHARED) $(CXXFLAGS) $(ICXXSRCS) $(SRCS) $(CXXSRCS) $(INCLUDES)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(IPROXYSRCS) $(INCLUDES)
|
||||
$(CXX_LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(CLIBPREFIX)$(TARGET)$(C_SO)
|
||||
|
||||
c_compile: $(RUNME) $(PROXY)
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ setup = \
|
|||
# a file is found which has _runme.c appended after the testcase name.
|
||||
run_testcase = \
|
||||
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then (\
|
||||
cd $* && $(COMPILETOOL) $(CC) ../$*_runme.c $*_proxy.c -L. -l$* -o $*_runme && \
|
||||
cd $* && $(COMPILETOOL) $(CC) ../$*_runme.c -L. -l$* -o $*_runme && \
|
||||
env LD_LIBRARY_PATH="$*:$$LD_LIBRARY_PATH" PATH="$*:$$PATH" SHLIB_PATH="$*:$$SHLIB_PATH" DYLD_LIBRARY_PATH="$*:$$DYLD_LIBRARY_PATH" $(RUNTOOL) ./$*_runme;) \
|
||||
fi;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue