2006-10-28 04:04:55 +02:00
|
|
|
# $Id$
|
|
|
|
|
2007-11-29 17:59:35 +01:00
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CFLAGS@
|
2006-10-28 04:04:55 +02:00
|
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
2007-11-29 17:59:35 +01:00
|
|
|
LIBS = @LIBS@
|
2007-12-17 19:59:51 +01:00
|
|
|
|
2007-11-29 17:59:35 +01:00
|
|
|
ERLANG_CFLAGS = @ERLANG_CFLAGS@
|
|
|
|
ERLANG_LIBS = @ERLANG_LIBS@
|
2006-10-28 04:04:55 +02:00
|
|
|
|
2008-07-16 18:58:42 +02:00
|
|
|
EFLAGS += -I ..
|
2008-07-13 21:10:01 +02:00
|
|
|
EFLAGS += -pz ..
|
|
|
|
|
2007-05-29 16:31:12 +02:00
|
|
|
# make debug=true to compile Erlang module with debug informations.
|
|
|
|
ifdef debug
|
2009-12-29 20:10:52 +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 = ..
|
|
|
|
SOURCES = $(wildcard *.erl)
|
|
|
|
BEAMS = $(addprefix $(OUTDIR)/,$(SOURCES:.erl=.beam))
|
|
|
|
|
2006-10-28 04:04:55 +02:00
|
|
|
|
2007-12-17 19:59:51 +01:00
|
|
|
all: $(BEAMS)
|
2006-10-28 04:04:55 +02:00
|
|
|
|
|
|
|
$(OUTDIR)/%.beam: %.erl
|
|
|
|
@ERLC@ -W $(EFLAGS) -o $(OUTDIR) $<
|
|
|
|
|
|
|
|
clean:
|
2007-12-17 19:59:51 +01:00
|
|
|
rm -f $(BEAMS)
|
2006-10-28 04:04:55 +02:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile
|
|
|
|
|
|
|
|
TAGS:
|
|
|
|
etags *.erl
|
2007-06-27 13:05:14 +02:00
|
|
|
|