Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Simplify build process (must set ERL_TOP)
  • Loading branch information
hntrmrrs committed Nov 26, 2009
1 parent 52107d0 commit aaf1cd609fb4ca7c4885aa22553565f923339e20
Showing 16 changed files with 133 additions and 780 deletions.
@@ -3,30 +3,6 @@ ebin
_build/
lib/bcrypt/bcrypt

## Make-related
Makefile

## Autoconf
m4
Makefile.in
config.guess
config.log
config.status
config.sub
config.h
config.h.in
configure
depcomp
install-sh
libtool
ltmain.sh
missing
aclocal.m4
acinclude.m4
autom4te.cache
stamp-*
INSTALL

## libtool
.deps
.erl
@@ -37,6 +13,7 @@ INSTALL
*.lo
*.loT
*.o
*.so

## Distribution files
*.gz
@@ -0,0 +1,37 @@
ERL_TOP=../otp
include $(ERL_TOP)/make/target.mk

INCLUDES = \
-I$(ERL_TOP)/erts/$(TARGET) \
-I$(ERL_TOP)/erts/emulator/$(TARGET) \
-I$(ERL_TOP)/erts/emulator/$(TARGET)/opt/smp \
-I$(ERL_TOP)/erts/emulator/beam/ \
-I$(ERL_TOP)/erts/emulator/sys/unix \
-I$(ERL_TOP)/erts/include/$(TARGET) \
-I$(ERL_TOP)/erts/include/internal \
-no-cpp-precomp -DHAVE_CONFIG_H

# OS X Snow Leopard flags.
GCCFLAGS = -m64 -O3 -fPIC -bundle -flat_namespace -undefined suppress -fno-common -Wall

# Linux Flags
#GCCFLAGS = -O3 -fPIC -shared -fno-common -Wall

CFLAGS = $(GCCFLAGS) $(INCLUDES)
LDFLAGS = $(GCCFLAGS) $(LIBS)

OBJECTS = lib/bcrypt/c_src/blowfish.o lib/bcrypt/c_src/bcrypt.o lib/bcrypt/c_src/bcrypt_nif.o

DRIVER = lib/bcrypt/c_src/bcrypt_nif.so
BEAM = lib/bcrypt/ebin/bcrypt_nif.beam

all: $(DRIVER) $(BEAM)

clean:
rm -f *.o *.beam $(DRIVER)

$(DRIVER): $(OBJECTS)
gcc -o $@ $^ $(LDFLAGS)

$(BEAM): lib/bcrypt/src/bcrypt_nif.erl
erlc $^

This file was deleted.

@@ -1,6 +1,6 @@
project : {
name : bcrypt
vsn : "0.1.0"
vsn : "0.2.0"
},

repositories : ["http://repo.erlware.org/pub"],

This file was deleted.

193 bootstrap

This file was deleted.

0 comments on commit aaf1cd6

Please sign in to comment.