2002-11-18 21:39:47 +01:00
|
|
|
# $Id$
|
|
|
|
|
2003-01-28 20:45:13 +01:00
|
|
|
include Makefile.inc
|
|
|
|
|
2002-11-18 21:39:47 +01:00
|
|
|
INCLUDES = -I/usr/lib/erlang/usr/include \
|
2003-01-28 20:45:13 +01:00
|
|
|
-I$(EI_DIR)/include
|
2002-11-18 21:39:47 +01:00
|
|
|
|
2003-01-28 20:45:13 +01:00
|
|
|
LIBDIRS = -L$(EI_DIR)/lib
|
2002-11-18 21:39:47 +01:00
|
|
|
|
2003-01-10 20:44:35 +01:00
|
|
|
ERLSHLIBS = expat_erl.so
|
2002-12-20 21:42:08 +01:00
|
|
|
|
|
|
|
all: $(ERLSHLIBS)
|
2003-01-24 21:18:33 +01:00
|
|
|
erl -s make all report -noinput -s erlang halt
|
2002-11-18 21:39:47 +01:00
|
|
|
|
2002-12-20 21:42:08 +01:00
|
|
|
$(ERLSHLIBS): %.so: %.c
|
|
|
|
gcc -Wall $(INCLUDES) $(LIBDIRS) \
|
|
|
|
-lexpat \
|
|
|
|
$(subst .so,.c,$@) \
|
|
|
|
-lerl_interface \
|
|
|
|
-lei \
|
|
|
|
-o $@ -fpic -shared \
|
2002-11-18 21:39:47 +01:00
|
|
|
|
2003-01-24 21:18:33 +01:00
|
|
|
clean:
|
|
|
|
rm -f *.beam
|
|
|
|
|
2003-01-28 20:45:13 +01:00
|
|
|
Makefile.inc:
|
|
|
|
./configure
|
2003-01-29 18:12:23 +01:00
|
|
|
|
|
|
|
TAGS:
|
|
|
|
etags *.erl
|
|
|
|
|