This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Runar Tenfjord
committed
Nov 23, 2012
1 parent
d17b74c
commit 7d7197d
Showing
13 changed files
with
264 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
include Makefile | ||
include setup_build.py | ||
include setup_docs.py | ||
include version.py | ||
include MANIFEST.in | ||
include README.rst | ||
include TODO.rst | ||
include LICENSE.txt | ||
recursive-include occmodel *.py *.pyx *.pxi *.pxd *.rst *.cpp *.h | ||
exclude occmodel/test.py occmodel/test2.py occmodel/Note.rst | ||
prune occmodel/@arch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# | ||
# File: Makefile (for library) | ||
# | ||
# The variables 'PYTHON' and 'PYVER' can be modified by | ||
# passing parameters to make: make PYTHON=python PYVER=2.6 | ||
# | ||
PYTHON=python2 | ||
PYVER=2.7 | ||
|
||
CC=g++ | ||
CFLAGS=-Wall -fPIC -O2 -frtti -fexceptions -Isrc -I/usr/include/oce | ||
LIB=occmodel/liboccmodel.a | ||
|
||
LIBSRC = $(wildcard occmodel/@src/*.cpp) | ||
|
||
LIBOBJ=$(LIBSRC:.cpp=.o) | ||
|
||
.PHONY: pylib docs test tests install clean | ||
|
||
$(LIB): $(LIBOBJ) | ||
@echo lib Makefile - archiving $(LIB) | ||
@$(AR) r $(LIB) $(LIBOBJ) | ||
|
||
.cpp.o: | ||
@echo lib Makefile - compiling $< | ||
@$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
pylib: $(LIB) | ||
@echo lib Makefile - building python extension | ||
$(PYTHON) setup_build.py build_ext --inplace | ||
|
||
docs: pylib | ||
@echo lib Makefile - building documentation | ||
@cd occmodel/@docs ; $(PYTHON) ../../setup_docs.py build_sphinx | ||
@cp -rf occmodel/@docs/build/sphinx/html/* occmodel/@docs/html/ | ||
|
||
test: pylib | ||
@echo lib Makefile - running test file | ||
$(PYTHON) occmodel/test.py | ||
|
||
tests: pylib | ||
@echo lib Makefile - running test suite | ||
@cd occmodel/@tests ; $(PYTHON) runAll.py | ||
|
||
install: pylib | ||
@cp occmodel.so ~/.local/lib/python$(PYVER)/site-packages/ | ||
@cp occmodelviewer.so ~/.local/lib/python$(PYVER)/site-packages/ | ||
|
||
sdist: clean | ||
@echo lib Makefile - creating source distribution | ||
$(PYTHON) setup_build.py sdist --formats=gztar,zip | ||
|
||
clean: | ||
-rm $(LIBOBJ) | ||
-rm $(LIB) | ||
-rm -rf build dist | ||
-rm -rf occmodel/@docs/build | ||
-rm -rf occmodel/@docs/html | ||
-rm MANIFEST occmodel/@src/Config.pxi | ||
-rm occmodel.so occmodel/occmodel.cpp | ||
-rm occmodelviewer.so occmodel/occmodelviewer.c | ||
-find occmodel -iname '*.so' -exec rm {} \; | ||
-find occmodel -iname '*.pyc' -exec rm {} \; | ||
-find occmodel -iname '*.pyo' -exec rm {} \; | ||
-find occmodel -iname '*.pyd' -exec rm {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ToDo | ||
---- | ||
|
||
* Migrate building to CMake or similiar | ||
* Optimize viewer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.