mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-18 22:15:20 +02:00
f25316c1e7
* src/configure: Likewise * src/Makefile.in: The mnesia, ebin and priv dirs are now installed in different locations. Install header files and documentation (EJAB-696) * doc/guide.tex: Likewise * doc/guide.html: Likewise * include/*.hrl: Place for all ejabberd header files (EJAB-696) * src/*/*.erl: Update references to header files * src/*/Makefile.in: Include the include/ dir SVN Revision: 1441
47 lines
770 B
Makefile
47 lines
770 B
Makefile
# $Id$
|
|
|
|
CC = @CC@
|
|
CFLAGS = @CFLAGS@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
LDFLAGS = @LDFLAGS@
|
|
LIBS = @LIBS@
|
|
|
|
ERLANG_CFLAGS = @ERLANG_CFLAGS@
|
|
ERLANG_LIBS = @ERLANG_LIBS@
|
|
|
|
EFLAGS += -I ../../include
|
|
EFLAGS += -pz ..
|
|
# make debug=true to compile Erlang module with debug informations.
|
|
ifdef debug
|
|
EFLAGS+=+debug_info
|
|
endif
|
|
|
|
OUTDIR = ..
|
|
SOURCES = $(wildcard *.erl) ELDAPv3.erl
|
|
BEAMS = $(addprefix $(OUTDIR)/,$(SOURCES:.erl=.beam))
|
|
|
|
|
|
all: $(BEAMS) ELDAPv3.beam
|
|
|
|
ELDAPv3.beam: ELDAPv3.erl
|
|
|
|
ELDAPv3.erl: ELDAPv3.asn
|
|
@ERLC@ -bber_bin -W $(EFLAGS) $<
|
|
|
|
$(OUTDIR)/%.beam: %.erl ELDAPv3.erl
|
|
@ERLC@ -W $(EFLAGS) -o $(OUTDIR) $<
|
|
|
|
clean:
|
|
rm -f ELDAPv3.asn1db
|
|
rm -f ELDAPv3.erl
|
|
rm -f ELDAPv3.hrl
|
|
rm -f ELDAPv3.beam
|
|
rm -f $(BEAMS)
|
|
|
|
distclean: clean
|
|
rm -f Makefile
|
|
|
|
TAGS:
|
|
etags *.erl
|
|
|