mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-12 21:52:07 +02:00
3131c08155
* src/expat_erl.c: Added #ifdef for WIN32 (thanks to Sergei Golovan) * src/mod_irc/iconv_erl.c: Likewise * src/configure.erl: Defines ERLANG_DIR variable (thanks to Sergei Golovan) * **/Makefile: Use ERLANG_DIR (thanks to Sergei Golovan) * **/Makefile.win32: Makefiles for windows build (thanks to Sergei Golovan) * src/configure.bat: Configuration script for windows (thanks to Sergei Golovan) SVN Revision: 123
33 lines
486 B
Makefile
33 lines
486 B
Makefile
# $Id$
|
|
|
|
include Makefile.inc
|
|
|
|
INCLUDES = -I$(ERLANG_DIR)/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
|
|
|