Age | Commit message (Collapse) | Author |
|
Thanks to two users of the ninenines/esdl2 project,
a correct way to build NIFs on Windows has been found.
At the moment we require a specific compiler (MingW's
gcc). Maybe we can change this in the future and allow
Visual Studio and others.
Some small changes have been made to the documentation,
and the meaning of one configuration variable has changed
to not include the extension (which is decided automatically
by Erlang.mk; and configurable separately).
Enjoy!
|
|
We can write the file using the Makefile variables without going
through environment variables.
|
|
Pushing this now so I can figure out Windows.
|
|
'find', the underlying command of core_find, does not support multiple patterns
after -name. This patch fixes multi-pattern use in c_src.mk by calling core_find
once for each pattern.
|
|
|
|
|
|
This commit implements a core_find and core_ls function that
can be used to list files recursively or not.
A few other minute changes are included and a couple hacks
removed.
|
|
Previously we only did shared libraries, now we allow executables.
Also improve greatly the handling of autopatched rebar projects
by relying once again on the rebar_utils module.
|
|
|
|
|
|
|
|
* This patch ensures building the NIF code under`c_src`
even on running `make tests`
* When `c_src/Makefile` exists:
* Split the Makefile invocation dependency into `app-c_src`
* Invoke `app-c_src` also in `test-build` as well as `app`
* When `c_src/Makefile` does not exist:
* Add `$(C_SRC_ENV) $(C_SRC_OUTPUT)` dependencies to `test-build`
|
|
|
|
Also added a copyright line in the eunit plugin due to the
extensive work I have done there a few days ago.
|
|
Use "+A0 -noinput -boot start_clean" as start argument.
Use halt/{1,2} to shutdown the VM faster.
|
|
* Add the following flags to LDFLAGS needed at linkage for OS X,
and remove the following flags from CFLAGS and CPPFLAGS:
`-arch x86_64 -flat_namespace -undefined suppress`
|
|
* The `-regex` option of `find` command to determine `SOURCES` in
plugins/c_src.mk` is not portable; does not work on OS X.
Rewrite with a portable form of using `find` native `-name`
command option with `\(`, `-o`, and `\)`.
* Support file extentions of `*.c`, `*.C`, `*.cc`, and `*.cpp`.
|
|
We can just LDFLAGS += and whatnot.
|
|
Add compile .cc,.cpp,.C files as C++.
Compile each source file to .o.
Link all .o object to .so.
Delete .o on clean target.
|
|
Because env.mk creates a considerable time, then delete it less often.
|
|
|
|
|
|
Using LDFLAGS, LDLIBS for link
|
|
* erlang:halt/0 is much faster than init:stop/0 to terminate
execution (no wait time)
|
|
|
|
|
|
|