2003-09-26 20:55:01 +02:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
|
2003-10-17 21:15:38 +02:00
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
|
|
|
|
INCLUDES = @ERLANG_CFLAGS@
|
|
|
|
|
|
|
|
LIBDIRS = @ERLANG_LIBS@
|
|
|
|
|
|
|
|
SUBDIRS =
|
2003-09-26 20:55:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
ERLSHLIBS = ../stringprep_drv.so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OUTDIR = ..
|
|
|
|
EFLAGS = -I .. -pz ..
|
|
|
|
OBJS = \
|
|
|
|
$(OUTDIR)/stringprep.beam
|
|
|
|
|
|
|
|
all: $(OBJS) $(ERLSHLIBS)
|
|
|
|
|
|
|
|
$(OUTDIR)/%.beam: %.erl
|
|
|
|
erlc -W $(EFLAGS) -o $(OUTDIR) $<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#all: $(ERLSHLIBS)
|
|
|
|
# erl -s make all report "{outdir, \"..\"}" -noinput -s erlang halt
|
|
|
|
|
2003-10-06 22:12:11 +02:00
|
|
|
$(ERLSHLIBS): ../%.so: %.c uni_data.c uni_norm.c
|
2003-10-08 20:27:48 +02:00
|
|
|
gcc -Wall -O2 $(INCLUDES) $(LIBDIRS) \
|
2003-09-26 20:55:01 +02:00
|
|
|
$(subst ../,,$(subst .so,.c,$@)) \
|
|
|
|
-lerl_interface \
|
|
|
|
-lei \
|
|
|
|
-o $@ -fpic -shared \
|
|
|
|
|
|
|
|
clean:
|
2003-10-17 21:15:38 +02:00
|
|
|
rm -f $(OBJS) $(ERLSHLIBS)
|
2003-09-26 20:55:01 +02:00
|
|
|
|
|
|
|
TAGS:
|
|
|
|
etags *.erl
|
|
|
|
|