mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
6599d1ecc5
SVN Revision: 55
33 lines
488 B
Makefile
33 lines
488 B
Makefile
# $Id$
|
|
|
|
include Makefile.inc
|
|
|
|
INCLUDES = -I/usr/lib/erlang/usr/include \
|
|
-I$(EI_DIR)/include \
|
|
-I/usr/local/include
|
|
|
|
LIBDIRS = -L$(EI_DIR)/lib -L/usr/local/lib
|
|
|
|
ERLSHLIBS = expat_erl.so
|
|
|
|
all: $(ERLSHLIBS)
|
|
erl -s make all report -noinput -s erlang halt
|
|
|
|
$(ERLSHLIBS): %.so: %.c
|
|
gcc -Wall $(INCLUDES) $(LIBDIRS) \
|
|
-lexpat \
|
|
$(subst .so,.c,$@) \
|
|
-lerl_interface \
|
|
-lei \
|
|
-o $@ -fpic -shared \
|
|
|
|
clean:
|
|
rm -f *.beam
|
|
|
|
Makefile.inc:
|
|
./configure
|
|
|
|
TAGS:
|
|
etags *.erl
|
|
|