diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-08 09:23:03 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-08 09:23:03 +0200 |
commit | 29e4a0512331a36c1cde22ed26c6ae059fa20757 (patch) | |
tree | 09496f029124fe4fc61aa7e014df50349128ced3 /Makefile | |
parent | 8fd11c9821c23c69da76158c87acdefe2ae9586f (diff) |
Adding libtommath, libtomcrypt and lcrypt, mainly for the bignum support.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 32 |
1 files changed, 25 insertions, 7 deletions
@@ -18,7 +18,7 @@ ifeq ($(SYSTEM),Darwin) endif ifeq ($(SYSTEM),Linux) - LIBS += pthread dl + LIBS += pthread dl util CONFIG_H = linux-config.h endif @@ -135,8 +135,6 @@ strip: $(TESTS) lib: $(LIB) -LuaJIT: LuaJIT/src/libluajit.a - LuaJIT/src/libluajit.a: ifeq ($(CROSSCOMPILE),true) $(MAKE) -C LuaJIT HOST_CC="gcc -m32" CROSS=$(LUAJIT_CROSS) TARGET_SYS=$(LUAJIT_TARGET) BUILDMODE=static @@ -144,16 +142,33 @@ else $(MAKE) -C LuaJIT CC="$(CC) $(ARCH_FLAGS)" BUILDMODE=static endif -libBalau.a: LuaJIT/src/libluajit.a $(BALAU_OBJECTS) +libtommath: libtommath/libtommath.a + +libtommath/libtommath.a: + $(MAKE) -C libtommath CC="$(CC) $(ARCH_FLAGS)" + +libtomcrypt: libtomcrypt/libtomcrypt.a + +libtomcrypt/libtomcrypt.a: + $(MAKE) -C libtomcrypt CC="$(CC) $(ARCH_FLAGS) -DLTM_DESC -DUSE_LTM -I../libtommath" + +lcrypt: lcrypt/lcrypt.o + +lcrypt/lcrypt.o: + LUA=../LuaJIT TOMCRYPT=../libtomcrypt $(MAKE) -C lcrypt CC="$(CC) $(ARCH_FLAGS)" + +LuaJIT: LuaJIT/src/libluajit.a + +libBalau.a: LuaJIT/src/libluajit.a libtommath/libtommath.a libtomcrypt/libtomcrypt.a lcrypt/lcrypt.o $(BALAU_OBJECTS) ifeq ($(SYSTEM),Darwin) ifneq ($(CROSSCOMPILE),true) rm -f libBalau.a endif endif - $(AR) libBalau.a $(BALAU_OBJECTS) + $(AR) libBalau.a $(BALAU_OBJECTS) lcrypt/lcrypt.o %.$(BINEXT) : %.o $(LIB) - $(LD) $(LDFLAGS) -o $@ $< ./$(LIB) ./LuaJIT/src/libluajit.a $(LDLIBS) + $(LD) $(LDFLAGS) -o $@ $< ./$(LIB) ./LuaJIT/src/libluajit.a ./libtomcrypt/libtomcrypt.a ./libtommath/libtommath.a $(LDLIBS) dep: $(ALL_DEPS) @@ -168,5 +183,8 @@ dep: $(ALL_DEPS) clean: rm -f $(ALL_OBJECTS) $(TESTS) $(LIB) $(ALL_DEPS) $(MAKE) -C LuaJIT clean + $(MAKE) -C libtommath clean + $(MAKE) -C libtomcrypt clean + $(MAKE) -C lcrypt clean -.PHONY: lib tests clean strip LuaJIT +.PHONY: lib tests clean strip LuaJIT libtommath libtomcrypt lcrypt |