mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
a7f22bfded
* ejabberd_zlib/Makefile.in: Likewise. * mod_irc/Makefile.in: Likewise. * stringprep/Makefile.in: Likewise. * tls/Makefile.in: Likewise. SVN Revision: 596
49 lines
927 B
Makefile
49 lines
927 B
Makefile
# $Id$
|
|
|
|
CC = @CC@
|
|
CFLAGS = @CFLAGS@ @ERLANG_CFLAGS@
|
|
CPPFLAGS = @CPPFLAGS@
|
|
LDFLAGS = @LDFLAGS@
|
|
LIBS = @LIBS@ @ERLANG_LIBS@ @LIBICONV@
|
|
|
|
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
|
|
|
|
SUBDIRS =
|
|
|
|
ERLSHLIBS = ../iconv_erl.so
|
|
|
|
OUTDIR = ..
|
|
EFLAGS = -I .. -pz ..
|
|
OBJS = \
|
|
$(OUTDIR)/mod_irc.beam \
|
|
$(OUTDIR)/mod_irc_connection.beam \
|
|
$(OUTDIR)/iconv.beam
|
|
|
|
all: $(OBJS) $(ERLSHLIBS)
|
|
|
|
$(OUTDIR)/%.beam: %.erl
|
|
@ERLC@ -W $(EFLAGS) -o $(OUTDIR) $<
|
|
|
|
#all: $(ERLSHLIBS)
|
|
# erl -s make all report "{outdir, \"..\"}" -noinput -s erlang halt
|
|
|
|
$(ERLSHLIBS): ../%.so: %.c
|
|
$(CC) -Wall $(INCLUDES) $(CFLAGS) $(LDFLAGS) \
|
|
$(subst ../,,$(subst .so,.c,$@)) $(LIBS) \
|
|
-o $@ $(DYNAMIC_LIB_CFLAGS)
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(ERLSHLIBS)
|
|
|
|
distclean: clean
|
|
rm -f Makefile
|
|
|
|
TAGS:
|
|
etags *.erl
|
|
|