diff options
author | Alexey Shchepin <alexey@process-one.net> | 2002-12-20 20:42:08 +0000 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2002-12-20 20:42:08 +0000 |
commit | ae30798efd9f802e43ec0495162acbe6f340aebd (patch) | |
tree | 50726dd86cb685817cf1f7313e13c13ded57500b /src/Makefile | |
parent | *** empty log message *** (diff) |
*** empty log message ***
SVN Revision: 20
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 18 |
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 \ |