aboutsummaryrefslogtreecommitdiff
path: root/src/odbc/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/odbc/Makefile.in')
-rw-r--r--src/odbc/Makefile.in18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/odbc/Makefile.in b/src/odbc/Makefile.in
index e29115003..974517c5b 100644
--- a/src/odbc/Makefile.in
+++ b/src/odbc/Makefile.in
@@ -9,28 +9,24 @@ LIBS = @LIBS@
ERLANG_CFLAGS = @ERLANG_CFLAGS@
ERLANG_LIBS = @ERLANG_LIBS@
-SUBDIRS =
-
-OUTDIR = ..
EFLAGS = -I .. -pz ..
# make debug=true to compile Erlang module with debug informations.
ifdef debug
- EFLAGS+=+debug_info
+ EFLAGS+=+debug_info
endif
-OBJS = \
- $(OUTDIR)/ejabberd_odbc.beam \
- $(OUTDIR)/ejabberd_odbc_sup.beam \
- $(OUTDIR)/odbc_queries.beam
+OUTDIR = ..
+SOURCES = $(wildcard *.erl)
+BEAMS = $(addprefix $(OUTDIR)/,$(SOURCES:.erl=.beam))
-all: $(OBJS)
+
+all: $(BEAMS)
$(OUTDIR)/%.beam: %.erl
@ERLC@ -W $(EFLAGS) -D@db_type@ -o $(OUTDIR) $<
-
clean:
- rm -f $(OBJS)
+ rm -f $(BEAMS)
distclean: clean
rm -f Makefile