descriptionThe Jungle of Erlang code
homepage URLhttp://jungerl.sourceforge.net
repository URLhttps://github.com/gebi/jungerl.git
ownergebi@sbox.tugraz.at
last changeThu, 19 Nov 2015 15:07:13 +0000 (19 16:07 +0100)
last refreshTue, 7 May 2024 18:15:18 +0000 (7 20:15 +0200)
content tags
add:
README
How to use the Jungerl
======================================================================

Simple! You just do 'make' to build all the erlang programs.

If you want, you can add the bin/ directory to your $PATH, and use the
useful programs in there. One is 'jerl', a simple wrapper around 'erl'
that adds all the Jungerl applications to the code path.

If a program is giving you trouble, just put an empty file called SKIP
in its top-level directory. For example, if you want to skip the
'tuntap' program, you can do: touch lib/tuntap/SKIP

If you want to compile only one program or library, you can just do 'make conf'
and then type make in the lib/PROGRAMNAME directory of your choice.

How to add an application to the Jungerl
======================================================================

Each application has its own directory called lib/<appname>.

The absolute minimum requirement for an application is to have a
Makefile in the lib/<appname> directory with two targets:

  'all' should build the program.

  'clean' should delete any object files.

Realistically, your lib/<appname>/ dir should also have any of these
subdirectories that are appropriate:

  src/   containing erlang sources

  ebin/  for putting compiled beam files

  c_src/ containing C sources

  priv/  containing files you want at runtime (e.g. built from c_src)

  doc/   (not sure what this is for..)

Once you have created your application, you should edit the 'lib/'
directory Makefile like this:

  Add your <appname> to the "LIBS" variable.

  If you depend on other applications, add a line that says so. (These
  are down near the bottom.)

Note that Applications in the Jungerl should be compatible with the
latest released version of Erlang/OTP!


Makefile Helpers
----------------------------------------------------------------------

The support/ directory contains a couple of useful include files for
your Makefiles:

  subdirs.mk: Intended for your lib/<appname>/ directory, this defines
    targets for 'all' and 'clean' that just cd into $(SUBDIRS) (by
    default c_src and src) and does the same "make" in each of them.

  include.mk: This defines a bunch of useful things for building C and
    Erlang programs. For C it has 'configure'-detected CC and CFLAGS
    variables, and ERL_C_INCLUDE_DIR for
    <prefix>/lib/erlang/usr/include/ (e.g. for writing drivers)

    For Erlang it has a 'configure'-detected ERLC, an
    automatically-detected list of beam files to build (../ebin/*.beam
    for all *.erl files) called ERL_OBJECTS, and
    automatically-detected list of headers they depend on (*.hrl and
    ../include/*.hrl) called ERL_HEADERS, and an implicit rule for
    building ../ebin/*.beam from *.erl.

That probably wasn't very clear, but if you look at how the 'tuntap'
program's Makefiles are done then it should be obvious!
shortlog
2015-11-19 Michael GebetsroitherMerge branch 'pu'master
2015-11-19 Michael GebetsroitherMerge branch 't/abrahamsson-fd_server-ipv6'
2011-02-13 asergeycvsimport
2011-02-13 asergeyVersion 0.7origin
2011-01-18 asergeyRemoved obsolete project replaced by OtpTest1
2011-01-18 asergeyVersion 0.6. Added RPC cast. Bug fixes.
2011-01-18 asergey*** empty log message ***
2011-01-18 asergeyVersion 0.6. Added RPC cast. Bug fixes.
2010-11-30 Michael Gebetsroitherfd_server: correct minor type mismatchespu
2010-11-04 Tomas AbrahamssonFix compilation warnings on 64 bit architecturest/abrahamsson-fd_server-ipv6
2010-10-31 Tomas AbrahamssonSet the IPV6_V6ONLY socket option for IPv6 sockets
2010-10-31 Tomas AbrahamssonAdd a configure check for getaddrinfo availability
2010-10-30 Tomas AbrahamssonQuote arguments to AC_CHECK_FUNC
2010-10-05 Tomas AbrahamssonAdd IPv6 support to the fd_server
2010-10-04 Tomas AbrahamssonFix compilation warnings for fdsrv.erl
2010-09-17 VolkerAdded include for <string.h> due to warnings of missing...
...
tags
17 years ago yfront-2006-12-14
18 years ago gettext-2006-July-21
18 years ago gtkNode-0_9
18 years ago yfront-0-5
18 years ago yfront-0-4
18 years ago yfront-0-3
18 years ago yfront-0-2
18 years ago erlmerge-0-6
18 years ago js-0-4
18 years ago js-0-3
18 years ago js-0-2
18 years ago ftpd-1-5
18 years ago ftpd-1-4
18 years ago ftpd-1-3
18 years ago ftpd-1-2
18 years ago dhcp-1-3
...
heads
8 years ago master
13 years ago origin
13 years ago pu
13 years ago t/abrahamsson-fd_server-ipv6
14 years ago old_cvs