diff options
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -8,10 +8,12 @@ SCRYPT_LIBS := -lscrypt override CFLAGS := $(CFLAGS) -O2 -Wall -fPIC +.PHONY: all all: lua-5.1-try lua-5.2-try include findlua.mk +.PHONY: clean clean: $(RM) scrypt-5.1.so scrypt-5.2.so scrypt.so $(RM) luascrypt.o @@ -23,9 +25,11 @@ clean: .PHONY: install install: lua-5.1-try-install lua-5.2-try-install +.PHONY: lua-5.1 lua-5.1: scrypt-5.1.so ln -s -f scrypt-5.1.so scrypt.so +.PHONY: lua-5.1-install lua-5.1-install: INST_LIBDIR ?= $(DESTDIR)$(LUA51_CMOD_INST) lua-5.1-install: lua-5.1 $(INSTALL) -d $(INST_LIBDIR) @@ -34,9 +38,11 @@ lua-5.1-install: lua-5.1 scrypt-5.1.so: luascrypt.c base64.c $(CC) $(CFLAGS) $(LUA51_INC) -shared -o $@ $^ $(LUA51_LIB) $(SCRYPT_LIBS) +.PHONY: lua-5.2 lua-5.2: scrypt-5.2.so ln -s -f scrypt-5.2.so scrypt.so +.PHONY: lua-5.2-install lua-5.2-install: INST_LIBDIR ?= $(DESTDIR)$(LUA52_CMOD_INST) lua-5.2-install: lua-5.2 $(INSTALL) -d $(INST_LIBDIR) @@ -45,6 +51,6 @@ lua-5.2-install: lua-5.2 scrypt-5.2.so: luascrypt.c base64.c $(CC) $(CFLAGS) $(LUA52_INC) -shared -o $@ $^ $(LUA52_LIB) $(SCRYPT_LIBS) - +.PHONY: doc doc: @ldoc . |