summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2002-12-20 20:42:08 +0000
committerAlexey Shchepin <alexey@process-one.net>2002-12-20 20:42:08 +0000
commitae30798efd9f802e43ec0495162acbe6f340aebd (patch)
tree50726dd86cb685817cf1f7313e13c13ded57500b /src/Makefile
parent*** empty log message *** (diff)
*** empty log message ***
SVN Revision: 20
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/Makefile b/src/Makefile
index ff57225b..12ff0b40 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -5,14 +5,16 @@ INCLUDES = -I/usr/lib/erlang/usr/include \
LIBDIRS = -L/usr/lib/erlang/lib/erl_interface-3.3.0/lib
-all: expat_erl.so
+ERLSHLIBS = expat_erl.so sha_erl.so
+
+all: $(ERLSHLIBS)
erl -make
-expat_erl.so: expat_erl.c
- gcc -Wall $(INCLUDES) $(LIBDIRS) \
- -lexpat \
- expat_erl.c \
- -lerl_interface \
- -lei \
- -o expat_erl.so -fpic -shared \
+$(ERLSHLIBS): %.so: %.c
+ gcc -Wall $(INCLUDES) $(LIBDIRS) \
+ -lexpat \
+ $(subst .so,.c,$@) \
+ -lerl_interface \
+ -lei \
+ -o $@ -fpic -shared \