2003-07-08 22:11:27 +02:00
|
|
|
# $Id$
|
|
|
|
|
2003-10-17 21:15:38 +02:00
|
|
|
CC = @CC@
|
2007-11-29 17:59:35 +01:00
|
|
|
CFLAGS = @CFLAGS@
|
2003-10-17 21:15:38 +02:00
|
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
2007-11-29 17:59:35 +01:00
|
|
|
LIBS = @LIBS@
|
|
|
|
|
|
|
|
ERLANG_CFLAGS = @ERLANG_CFLAGS@
|
|
|
|
ERLANG_LIBS = @ERLANG_LIBS@
|
2003-10-17 21:15:38 +02:00
|
|
|
|
2003-07-08 22:11:27 +02:00
|
|
|
EFLAGS = -I .. -pz ..
|
2007-05-29 16:31:12 +02:00
|
|
|
# make debug=true to compile Erlang module with debug informations.
|
|
|
|
ifdef debug
|
2007-12-17 19:59:51 +01:00
|
|
|
EFLAGS+=+debug_info
|
2007-05-29 16:31:12 +02:00
|
|
|
endif
|
|
|
|
|
2007-12-17 19:59:51 +01:00
|
|
|
OUTDIR = ..
|
2008-07-24 13:53:00 +02:00
|
|
|
ERLBEHAVS = gen_pubsub_node.erl gen_pubsub_nodetree.erl
|
|
|
|
SOURCES_ALL = $(wildcard *.erl)
|
|
|
|
SOURCES = $(filter-out $(ERLBEHAVS),$(SOURCES_ALL))
|
|
|
|
ERLBEHAVBEAMS = $(addprefix $(OUTDIR)/,$(ERLBEHAVS:.erl=.beam))
|
2007-12-17 19:59:51 +01:00
|
|
|
BEAMS = $(addprefix $(OUTDIR)/,$(SOURCES:.erl=.beam))
|
|
|
|
|
|
|
|
|
2008-07-24 13:53:00 +02:00
|
|
|
all: $(ERLBEHAVBEAMS) $(BEAMS)
|
|
|
|
|
|
|
|
$(BEAMS): $(ERLBEHAVBEAMS)
|
2003-07-08 22:11:27 +02:00
|
|
|
|
|
|
|
$(OUTDIR)/%.beam: %.erl
|
2004-11-05 22:14:31 +01:00
|
|
|
@ERLC@ -W $(EFLAGS) -o $(OUTDIR) $<
|
2003-07-08 22:11:27 +02:00
|
|
|
|
|
|
|
clean:
|
2007-12-17 19:59:51 +01:00
|
|
|
rm -f $(BEAMS)
|
2003-07-08 22:11:27 +02:00
|
|
|
|
2004-05-17 22:36:41 +02:00
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile
|
|
|
|
|
2003-07-08 22:11:27 +02:00
|
|
|
TAGS:
|
|
|
|
etags *.erl
|
|
|
|
|