summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: 2cc96509ca01e0a8f644f5cf3a057b43f2e53061 (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
25
26
27
28
# $Id$

include Makefile.inc

INCLUDES = -I/usr/lib/erlang/usr/include \
	   -I$(EI_DIR)/include

LIBDIRS = -L$(EI_DIR)/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

Makefile.inc:
	./configure