2003-11-23 21:11:21 +01:00
|
|
|
CC = @CC@
|
2007-11-29 17:59:35 +01:00
|
|
|
CFLAGS = @CFLAGS@
|
2003-11-23 21:11:21 +01:00
|
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
2007-11-29 17:59:35 +01:00
|
|
|
LIBS = @LIBS@
|
|
|
|
|
2008-11-24 14:27:04 +01:00
|
|
|
ASN_FLAGS = -bber_bin +optimize +driver
|
|
|
|
|
2007-11-29 17:59:35 +01:00
|
|
|
ERLANG_CFLAGS = @ERLANG_CFLAGS@
|
|
|
|
ERLANG_LIBS = @ERLANG_LIBS@
|
2003-11-23 21:11:21 +01:00
|
|
|
|
2008-07-16 18:58:42 +02:00
|
|
|
EFLAGS += -I ..
|
2008-07-13 21:10:01 +02:00
|
|
|
EFLAGS += -pz ..
|
2008-07-16 18:58:42 +02:00
|
|
|
|
2007-05-29 16:31:12 +02:00
|
|
|
# make debug=true to compile Erlang module with debug informations.
|
|
|
|
ifdef debug
|
2009-12-29 20:15:59 +01:00
|
|
|
EFLAGS+=+debug_info +export_all
|
2007-05-29 16:31:12 +02:00
|
|
|
endif
|
|
|
|
|
2007-12-17 19:59:51 +01:00
|
|
|
OUTDIR = ..
|
2010-04-19 06:14:26 +02:00
|
|
|
SOURCES = $(wildcard *.erl) ELDAPv3.erl eldap_filter_yecc.erl
|
2007-12-17 19:59:51 +01:00
|
|
|
BEAMS = $(addprefix $(OUTDIR)/,$(SOURCES:.erl=.beam))
|
2003-11-23 21:11:21 +01:00
|
|
|
|
2007-12-17 19:59:51 +01:00
|
|
|
|
2010-04-19 06:14:26 +02:00
|
|
|
all: $(BEAMS) ELDAPv3.beam eldap_filter_yecc.beam
|
2003-11-23 21:11:21 +01:00
|
|
|
|
2008-03-26 10:27:46 +01:00
|
|
|
ELDAPv3.beam: ELDAPv3.erl
|
|
|
|
|
2003-11-23 21:11:21 +01:00
|
|
|
ELDAPv3.erl: ELDAPv3.asn
|
2008-11-24 14:27:04 +01:00
|
|
|
@ERLC@ $(ASN_FLAGS) -W $(EFLAGS) $<
|
2003-11-23 21:11:21 +01:00
|
|
|
|
2010-04-19 06:14:26 +02:00
|
|
|
eldap_filter_yecc.beam: eldap_filter_yecc.erl
|
|
|
|
|
|
|
|
eldap_filter_yecc.erl: eldap_filter_yecc.yrl
|
|
|
|
@ERLC@ -W $<
|
|
|
|
|
|
|
|
$(OUTDIR)/%.beam: %.erl ELDAPv3.erl eldap_filter_yecc.erl
|
2004-11-05 22:14:31 +01:00
|
|
|
@ERLC@ -W $(EFLAGS) -o $(OUTDIR) $<
|
2003-11-23 21:11:21 +01:00
|
|
|
|
|
|
|
clean:
|
2004-05-17 22:36:41 +02:00
|
|
|
rm -f ELDAPv3.asn1db
|
|
|
|
rm -f ELDAPv3.erl
|
|
|
|
rm -f ELDAPv3.hrl
|
|
|
|
rm -f ELDAPv3.beam
|
2010-04-19 06:14:26 +02:00
|
|
|
rm -f eldap_filter_yecc.erl
|
|
|
|
rm -f eldap_filter_yecc.beam
|
2007-12-17 19:59:51 +01:00
|
|
|
rm -f $(BEAMS)
|
2003-11-23 21:11:21 +01:00
|
|
|
|
2004-05-17 22:36:41 +02:00
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile
|
|
|
|
|
2003-11-23 21:11:21 +01:00
|
|
|
TAGS:
|
|
|
|
etags *.erl
|
|
|
|
|
2009-10-23 17:14:08 +02:00
|
|
|
# Don't include ELDAPv3.erl in sources for Devdoc
|
|
|
|
SOURCES = eldap.erl eldap_filter.erl eldap.hrl eldap_pool.erl eldap_utils.erl
|
|
|
|
|
|
|
|
DEVDOCDIR=../../doc/devdoc
|
|
|
|
DDTDIR=..
|
|
|
|
HTMLS = $(SOURCES:%.erl=../../doc/devdoc/%.html)
|
|
|
|
ERLHTMLS = $(SOURCES:%.erl=../../doc/devdoc/%.erl.html)
|
|
|
|
SVGS = $(SOURCES:%.erl=../../doc/devdoc/%.svg)
|
|
|
|
|
|
|
|
devdoc: $(HTMLS) $(ERLHTMLS) $(SVGS)
|
|
|
|
|
|
|
|
$(DEVDOCDIR)/%.erl.html: %.erl
|
|
|
|
@ERL@ -noshell -pa $(DEVDOCDIR) -run escobar_run file $< $(DDTDIR) -s init stop
|
|
|
|
|
|
|
|
$(DEVDOCDIR)/%.html: %.erl
|
|
|
|
@ERL@ -noshell -run edoc_run file $< \
|
|
|
|
'[{dir,"$(DDTDIR)"},{packages,false},{todo,true},{private,true},{def,{vsn,"$(VSN)"}},{stylesheet,"process-one.css"},{overview,"overview.edoc"}]' -s init stop
|
|
|
|
|
|
|
|
$(DEVDOCDIR)/%.svg: %.erl
|
|
|
|
@ERL@ -noshell -pa $(DEVDOCDIR) -run funrelg dir $< $(DDTDIR) -s init stop
|
|
|
|
|