Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add make targets + build instructions
  • Loading branch information
devernay committed Sep 2, 2015
1 parent dbc93ff commit a20c0a9
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 4 deletions.
22 changes: 19 additions & 3 deletions Makefile
Expand Up @@ -5,7 +5,7 @@ VectorGenerator

all: subdirs

.PHONY: nomulti subdirs clean $(SUBDIRS)
.PHONY: nomulti subdirs clean install install-nomulti uninstall uninstall-nomulti $(SUBDIRS)

nomulti:
$(MAKE) SUBDIRS="$(SUBDIRS_NOMULTI)"
Expand All @@ -15,7 +15,23 @@ subdirs: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@

clean :
clean:
for i in $(SUBDIRS) ; do \
$(MAKE) -C $$i clean; \
$(MAKE) -C $$i $@; \
done

install:
for i in $(SUBDIRS) ; do \
$(MAKE) -C $$i $@; \
done

install-nomulti:
$(MAKE) SUBDIRS="$(SUBDIRS_NOMULTI)" install

uninstall:
for i in $(SUBDIRS) ; do \
$(MAKE) -C $$i $@; \
done

uninstall-nomulti:
$(MAKE) SUBDIRS="$(SUBDIRS_NOMULTI)" uninstall
32 changes: 32 additions & 0 deletions README.md
Expand Up @@ -7,3 +7,35 @@ Compiling requires a recent installation of OpenCV

The opencv2fx plugins (inpaint and segment) were written by Bernd Porr <http://www.berndporr.me.uk/opencv2fx/>,
see opencv2fx/README for more information.

### Compiling (Unix/Linux/FreeBSD/OS X, using Makefiles)

On Unix-like systems, the plugins can be compiled by typing in a
terminal:
- `make [options]` to compile as a single combined plugin (see below
for valid options).
- `make nomulti [options]` to compile as separate plugins (useful if
only a few plugins are is needed, for example). `make` can also be
executed in any plugin's directory.

The most common options are `CONFIG=release` to compile a release
version, `CONFIG=debug` to compile a debug version. Or
`CONFIG=relwithdebinfo` to compile an optimized version with debugging
symbols.

Another common option is `BITS=32`for compiling a 32-bits version,
`BITS=64` for a 64-bits version, and `BITS=Universal` for a universal
binary (OS X only).

See the file `Makefile.master`in the toplevel directory for other useful
flags/variables.

The compiled plugins are placed in subdirectories named after the
configuration, for example Linux-64-realease for a 64-bits Linux
compilation. In each of these directories, a `*.bundle` directory is
created, which has to be moved to the proper place
(`/usr/OFX/Plugins`on Linux, or `/Library/OFX/Plugins`on OS X), using
a command like the following, with the *same* options used for
compiling:

sudo make install [options]
2 changes: 1 addition & 1 deletion openfx

0 comments on commit a20c0a9

Please sign in to comment.