blob: fb96a40f9b83c18290bee1c37b4d2a4aa24f441f [file] [log] [blame]
## Copyright (c) 2008 Hunter Morris <huntermorris@gmail.com>
## Permission to use, copy, modify, and distribute this software for any
## purpose with or without fee is hereby granted, provided that the above
## copyright notice and this permission notice appear in all copies.
## THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
## WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
## ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
## ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
## OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
bcryptebindir = $(localerlanglibdir)/bcrypt/ebin
bcryptprivlibdir = $(localerlanglibdir)/bcrypt/priv/lib
locallibbin_PROGRAMS = bcrypt
bcrypt_SOURCES = \
c_src/bcrypt_erlang.c \
c_src/blowfish.c \
c_src/bcrypt.c \
c_src/erl_blf.h
bcrypt_LDADD = -lpthread -lerl_interface -lei
bcrypt_file_collection = \
src/bcrypt.erl
bcryptebin_static_file = ebin/bcrypt.app
bcryptebin_make_generated_file_list = \
ebin/bcrypt.beam
bcryptebin_DATA = \
$(bcryptebin_static_file) \
$(bcryptebin_make_generated_file_list)
EXTRA_DIST = \
$(bcrypt_file_collection) \
$(bcryptebin_static_file)
CLEANFILES = \
$(bcryptebin_make_generated_file_list)
ebin/%.beam: src/%.erl
$(ERLC) -o ebin $<