Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 378 Bytes
all: libscrypt.a
UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
LFLAGS=/usr/local/lib/libscrypt.so
endif
ifeq ($(UNAME), Darwin)
LFLAGS=/usr/local/lib/libscrypt.dylib
endif
libscrypt.a:
dmd -L$(LFLAGS) -lib -of=libscrypt.a source/scrypt.d
clean:
rm -f libscrypt.a
unittest:
dmd -unittest -main -L/usr/local/lib/libscrypt.dylib source/scrypt.d
./scrypt
rm scrypt{,.o}
You can’t perform that action at this time.