mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
970e9e0843
placement in src/ subdirectories (EJAB-696) * src/*/*.erl: Likewise * src/*/Makefile.in: Likewise * src/Makefile.in: Install header files in system include/ dir, reproducing the subdirectory structure of src/ SVN Revision: 1453
39 lines
568 B
Makefile
39 lines
568 B
Makefile
# $Id$
|
|
|
|
CC = @CC@
|
|
CFLAGS = @CFLAGS@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
LDFLAGS = @LDFLAGS@
|
|
LIBS = @LIBS@
|
|
|
|
ERLANG_CFLAGS = @ERLANG_CFLAGS@
|
|
ERLANG_LIBS = @ERLANG_LIBS@
|
|
|
|
EFLAGS += -I ..
|
|
EFLAGS += -pz ..
|
|
|
|
# make debug=true to compile Erlang module with debug informations.
|
|
ifdef debug
|
|
EFLAGS+=+debug_info
|
|
endif
|
|
|
|
OUTDIR = ..
|
|
SOURCES = $(wildcard *.erl)
|
|
BEAMS = $(addprefix $(OUTDIR)/,$(SOURCES:.erl=.beam))
|
|
|
|
|
|
all: $(BEAMS)
|
|
|
|
$(OUTDIR)/%.beam: %.erl
|
|
@ERLC@ -W $(EFLAGS) -D@db_type@ -o $(OUTDIR) $<
|
|
|
|
clean:
|
|
rm -f $(BEAMS)
|
|
|
|
distclean: clean
|
|
rm -f Makefile
|
|
|
|
TAGS:
|
|
etags *.erl
|
|
|