aboutsummaryrefslogtreecommitdiff
path: root/src/stringprep/Makefile
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2003-09-26 18:55:01 +0000
committerAlexey Shchepin <alexey@process-one.net>2003-09-26 18:55:01 +0000
commit8888e2528ca55a9c1c7461f850c6cad2e9c66f22 (patch)
tree0d9482dfab365b3831521b2fe054a68cce0b0347 /src/stringprep/Makefile
parent* src/mod_muc/mod_muc_room.erl: Debug output switched off (diff)
* src/stringprep/: Support for stringprep (not completed yet)
* src/mod_muc/mod_muc.erl: Replaced io:format calls to ?DEBUG ones SVN Revision: 141
Diffstat (limited to 'src/stringprep/Makefile')
-rw-r--r--src/stringprep/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/stringprep/Makefile b/src/stringprep/Makefile
new file mode 100644
index 000000000..3f48c1090
--- /dev/null
+++ b/src/stringprep/Makefile
@@ -0,0 +1,42 @@
+# $Id$
+
+include ../Makefile.inc
+
+INCLUDES = -I$(ERLANG_DIR)/usr/include \
+ -I$(EI_DIR)/include \
+ -I/usr/local/include
+
+LIBDIRS = -L$(EI_DIR)/lib -L/usr/local/lib
+
+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
+
+$(ERLSHLIBS): ../%.so: %.c
+ gcc -Wall $(INCLUDES) $(LIBDIRS) \
+ $(subst ../,,$(subst .so,.c,$@)) \
+ -lerl_interface \
+ -lei \
+ -o $@ -fpic -shared \
+
+clean:
+ rm -f *.beam
+
+TAGS:
+ etags *.erl
+