This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/swig/Makefile.in

59 lines
1.5 KiB
Makefile
Raw Normal View History

2014-04-28 11:57:09 +01:00
PACKAGE=swig
DOC=swig
PKGCFLAGS=
SWIG=@SWIG@
JAVAC=@JAVAC@
JAR=@JAR@
include ../Makefile.defs
2014-04-29 11:49:09 +01:00
DEFS=@DEFS@ -D_YAP_NOT_INSTALLED_=1 -DDESTDIR=\"$(DESTDIR)\"
YAP_EXTRAS=@YAP_EXTRAS@
CPPFLAGS=@CPPFLAGS@ -I../.. -I$(srcdir)/../../H -I$(srcdir)/../../include -I$(srcdir)/../../os -I$(srcdir)/../../OPTYap -I$(srcdir)/../../BEAM -I$(srcdir)/../../CXX
CXXFLAGS= @SHLIB_CXXFLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS)
2014-04-28 11:57:09 +01:00
PROGRAMS= \
SWIG_FILES= \
2014-04-29 11:49:09 +01:00
$(srcdir)/yap.i
2014-04-28 11:57:09 +01:00
all: python java R
python: $(SWIG_FILES) python/_yap.so python/yap.py
2014-04-29 11:49:09 +01:00
python/_yap.so: python/yap_wrap.o
$(CXX) -shared $(LDSOFLAGS) -o python/_yap.so python/yap_wrap.o ../../yapi.o $(LIBS) @PYTHON_LIBS@ -L ../.. -lYap -lpthread
2014-04-28 11:57:09 +01:00
python/yap_wrap.c: $(srcdir)/yap.i
2014-04-29 11:49:09 +01:00
$(SWIG) -c++ -python -outdir python -o $@ $(DEFS) $(CPPFLAGS) -Wall $<
2014-04-28 11:57:09 +01:00
python/yap_wrap.o: python/yap_wrap.c
2014-04-29 11:49:09 +01:00
$(CXX) -c $(CXXFLAGS) @PYTHON_INCLUDES@ $< -o $@
2014-04-28 11:57:09 +01:00
java: java/libyap.@SO@ java/yap.java
cd java ; $(JAVAC) *.java; $(JAR) cvf yap.jar *.class
2014-05-04 23:02:28 +01:00
java/libyap.@SO@: jni/yap_wrap.o
2014-04-29 11:49:09 +01:00
$(CXX) -shared $(LDSOFLAGS) -L ../.. -lYap -o java/libyap.@SO@ ../../yapi.o java/yap_wrap.o $(LIBS) @JPLLDFLAGS@ -L ../.. -lYap -lpthread
2014-04-28 11:57:09 +01:00
2014-05-04 23:02:28 +01:00
jni/yap_wrap.c: $(srcdir)/yap.i
$(SWIG) -c++ -java -package pt.up.fc.dcc.yap -outdir src/pt/up/fc/dcc/yap -o $@ $(DEFS) $(CPPFLAGS) -Wall $<
2014-04-28 11:57:09 +01:00
java/yap_wrap.o: java/yap_wrap.c
2014-04-29 11:49:09 +01:00
$(CXX) -c $(CXXFLAGS) @JPLCFLAGS@ $< -o $@
2014-04-28 11:57:09 +01:00
R:
yap.i: $(srcdir)/../../include/YapInterface.h
install:
clean:
rm -f */*
distclean: clean
rm -f *def Makefile
##########