aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
blob: 08073153e9bdcec21d8244cf0a603dd535968161 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# $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

ERLSHLIBS = expat_erl.so

all:	$(ERLSHLIBS)
	erl -s make all report -noinput -s erlang halt
	etags *.erl

$(ERLSHLIBS):	%.so:	%.c
			gcc -Wall $(INCLUDES) $(LIBDIRS) \
			-lexpat \
			$(subst .so,.c,$@) \
			-lerl_interface \
			-lei \
			-o $@ -fpic -shared \

clean:
	rm -f *.beam