mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-10 16:58:46 +01:00
60f8b0772e
the directory, so it isn't needed to provide an explicit list of target files * src/eldap/Makefile.in: Likewise * src/mod_irc/Makefile.in: Likewise * src/mod_muc/Makefile.in: Likewise * src/mod_proxy65/Makefile.in: Likewise * src/mod_pubsub/Makefile.in: Likewise * src/odbc/Makefile.in: Likewise * src/pam/Makefile.in: Likewise * src/stringprep/Makefile.in: Likewise * src/tls/Makefile.in: Likewise * src/web/Makefile.in: Likewise SVN Revision: 1075
54 lines
1.1 KiB
Makefile
54 lines
1.1 KiB
Makefile
# $Id$
|
|
|
|
CC = @CC@
|
|
CFLAGS = @CFLAGS@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
LDFLAGS = @LDFLAGS@
|
|
LIBS = @LIBS@
|
|
|
|
ERLANG_CFLAGS = @ERLANG_CFLAGS@
|
|
ERLANG_LIBS = @ERLANG_LIBS@
|
|
|
|
ifeq ($(shell uname),Darwin)
|
|
DYNAMIC_LIB_CFLAGS = -fPIC -bundle -flat_namespace -undefined suppress
|
|
else
|
|
# Assume Linux-style dynamic library flags
|
|
DYNAMIC_LIB_CFLAGS = -fpic -shared
|
|
endif
|
|
|
|
EFLAGS = -I .. -pz ..
|
|
# make debug=true to compile Erlang module with debug informations.
|
|
ifdef debug
|
|
EFLAGS+=+debug_info
|
|
endif
|
|
|
|
ERLSHLIBS = ../stringprep_drv.so
|
|
OUTDIR = ..
|
|
SOURCES = $(wildcard *.erl)
|
|
BEAMS = $(addprefix $(OUTDIR)/,$(SOURCES:.erl=.beam))
|
|
|
|
|
|
all: $(BEAMS) $(ERLSHLIBS)
|
|
|
|
$(OUTDIR)/%.beam: %.erl
|
|
@ERLC@ -W $(EFLAGS) -o $(OUTDIR) $<
|
|
|
|
#all: $(ERLSHLIBS)
|
|
# erl -s make all report "{outdir, \"..\"}" -noinput -s erlang halt
|
|
|
|
$(ERLSHLIBS): ../%.so: %.c uni_data.c uni_norm.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDES) \
|
|
$(subst ../,,$(subst .so,.c,$@)) $(LIBS) \
|
|
$(ERLANG_LIBS) $(ERLANG_CFLAGS) \
|
|
-o $@ $(DYNAMIC_LIB_CFLAGS)
|
|
|
|
clean:
|
|
rm -f $(BEAMS) $(ERLSHLIBS)
|
|
|
|
distclean: clean
|
|
rm -f Makefile
|
|
|
|
TAGS:
|
|
etags *.erl
|
|
|