2003-09-26 20:55:01 +02:00
|
|
|
# $Id$
|
|
|
|
|
2003-10-17 21:15:38 +02:00
|
|
|
CC = @CC@
|
2004-09-26 22:46:43 +02:00
|
|
|
CFLAGS = @CFLAGS@ @ERLANG_CFLAGS@
|
2003-10-17 21:15:38 +02:00
|
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
2004-09-26 22:46:43 +02:00
|
|
|
LIBS = @LIBS@ @ERLANG_LIBS@
|
2003-10-17 21:15:38 +02:00
|
|
|
|
|
|
|
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
|
2004-11-05 22:14:31 +01:00
|
|
|
@ERLC@ -W $(EFLAGS) -o $(OUTDIR) $<
|
2003-09-26 20:55:01 +02:00
|
|
|
|
|
|
|
#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
|
2004-09-26 22:46:43 +02:00
|
|
|
gcc -Wall -O2 $(CFLAGS) $(LDFLAGS) $(INCLUDES) \
|
|
|
|
$(subst ../,,$(subst .so,.c,$@)) $(LIBS) \
|
|
|
|
-o $@ -fpic -shared
|
2003-09-26 20:55:01 +02:00
|
|
|
|
|
|
|
clean:
|
2003-10-17 21:15:38 +02:00
|
|
|
rm -f $(OBJS) $(ERLSHLIBS)
|
2003-09-26 20:55:01 +02:00
|
|
|
|
2004-05-17 22:36:41 +02:00
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile
|
|
|
|
|
2003-09-26 20:55:01 +02:00
|
|
|
TAGS:
|
|
|
|
etags *.erl
|
|
|
|
|