99 lines
2.5 KiB
Makefile
99 lines
2.5 KiB
Makefile
#This file is part of SECONDO.
|
|
|
|
#Copyright (C) 2004, University in Hagen, Department of Computer Science,
|
|
#Database Systems for New Applications.
|
|
|
|
#SECONDO is free software; you can redistribute it and/or modify
|
|
#it under the terms of the GNU General Public License as published by
|
|
#the Free Software Foundation; either version 2 of the License, or
|
|
#(at your option) any later version.
|
|
|
|
#SECONDO is distributed in the hope that it will be useful,
|
|
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
#GNU General Public License for more details.
|
|
|
|
#You should have received a copy of the GNU General Public License
|
|
#along with SECONDO; if not, write to the Free Software
|
|
#Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
########################################################################
|
|
#
|
|
# SECONDO makefile for JBBox Algebra
|
|
#
|
|
# 03-2004
|
|
#
|
|
########################################################################
|
|
|
|
include ../../makefile.env
|
|
|
|
# --- List of all needed header files (including indirect dependencies)
|
|
|
|
MODNAME = JBBoxAlgebra
|
|
|
|
CCFLAGS = $(DEFAULTCCFLAGS) $(JNIINCLUDE)
|
|
|
|
.PHONY: all
|
|
all: alljava allcpp
|
|
|
|
|
|
.PHONY: alljava
|
|
alljava:
|
|
$(MAKE) -C bbox all
|
|
|
|
.PHONY: allcpp
|
|
allcpp: $(OBJECTS) $(LIBOBJ)
|
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
-include $(DEP_FILES)
|
|
endif
|
|
|
|
.PHONY: deps
|
|
deps: $(DEP_FILES)
|
|
|
|
|
|
$(LIBOBJ): $(OBJECTS)
|
|
ifeq ($(shared),yes)
|
|
# ... as shared object
|
|
$(LD) $(LDFLAGS) $(LDJNIFLAGS) -o $(LIBOBJ) $(LDOPT) $(OBJECTS) $(TUPLEMANAGER) -L$(LIBDIR) $(BDBSMILIB) $(SDBLIB) $(TOOLLIB) $(DEFAULTLIB)
|
|
else
|
|
# ... as static library
|
|
$(AR) -r $(LIBOBJ) $(OBJECTS)
|
|
endif
|
|
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(MAKE) -C bbox clean
|
|
$(RM) $(LIBDIR)/$(LIBNAME).a
|
|
$(RM) $(LIBDIR)/$(LIBNAME).so
|
|
$(RM) $(LIBDIR)/$(LIBNAME).dll
|
|
$(RM) $(LIBDIR)/$(LIBNAME).dll.a
|
|
$(RM) *.o
|
|
$(RM) *.lo
|
|
$(RM) *.class
|
|
$(RM) *~
|
|
$(RM) *.tex *.aux *.toc *.pd *.dvi *.pdf *.log *.tmp
|
|
$(RM) $(DEP_FILES)
|
|
|
|
|
|
.PHONY: pdf
|
|
pdf: JBBoxAlgebra.pdf
|
|
|
|
JBBoxAlgebra.pdf: JBBoxAlgebra.pd.dvi
|
|
dvipdfm -p a4 -o JBBoxAlgebra.pdf JBBoxAlgebra.pd.dvi
|
|
|
|
|
|
.PHONY: pd
|
|
pd: JBBoxAlgebra.pd.dvi
|
|
|
|
JBBoxAlgebra.pd.dvi: JBBoxAlgebra.cpp JBBoxAlgebra.spec bbox/Point.java bbox/BBox.java
|
|
pd2tex JBBoxAlgebra.cpp
|
|
grep -v '\end{document}' JBBoxAlgebra.cpp.tex >JBBoxAlgebra.cpp.tex.tmp
|
|
cat JBBoxAlgebra.cpp.tex.tmp app1 bbox/Point.java app2 bbox/BBox.java app3 >JBBoxAlgebra.pd.tex
|
|
latex JBBoxAlgebra.pd.tex
|
|
latex JBBoxAlgebra.pd.tex
|
|
latex JBBoxAlgebra.pd.tex
|
|
rm -f JBBoxAlgebra.cpp.tex.tmp
|
|
rm -f JBBoxAlgebra.cpp.tex
|