2002-11-18 21:39:47 +01:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
INCLUDES = -I/usr/lib/erlang/usr/include \
|
|
|
|
-I/usr/lib/erlang/lib/erl_interface-3.3.0/include
|
|
|
|
|
|
|
|
LIBDIRS = -L/usr/lib/erlang/lib/erl_interface-3.3.0/lib
|
|
|
|
|
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
|
|
|
|
etags *.erl
|
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
|
|
|
|
|