Permalink
Browse files

move nif library into priv/lib

  • Loading branch information...
1 parent f67af31 commit e0054914f6cda141e88e65c1831da9a88f5b9686 @RoadRunnr RoadRunnr committed Jun 30, 2011
Showing with 6 additions and 5 deletions.
  1. +5 −5 c_src/Makefile
  2. +1 −0 src/gen_socket.erl
View
@@ -1,11 +1,11 @@
CFLAGS +=-fPIC -I. $(shell erl -noinput -eval 'io:format("-I~s -I~s/erts-~s/include", [code:lib_dir(erl_interface, include), code:root_dir(), erlang:system_info(version)]), halt(0).')
-all: ../priv/gen_socket.so
+all: ../priv/lib/gen_socket.so
clean:
- rm -f ../priv/*.so
+ rm -f ../priv/lib/*.so
rm -f *.o
-../priv/gen_socket.so: gen_socket.o
- (test -d ../priv || mkdir ../priv)
- $(CC) $(LDFLAGS) -fPIC -shared -lei -lerl_interface gen_socket.o -o ../priv/gen_socket.so
+../priv/lib/gen_socket.so: gen_socket.o
+ (test -d ../priv/lib || mkdir -p ../priv/lib)
+ $(CC) $(LDFLAGS) -fPIC -shared -lei -lerl_interface gen_socket.o -o ../priv/lib/gen_socket.so
View
@@ -146,6 +146,7 @@ progname() ->
filename:dirname(code:which(?MODULE)),
"..",
"priv",
+ "lib",
?MODULE
]).

0 comments on commit e005491

Please sign in to comment.