blob: db987d28039d2e9d642c1458f44e3beaa3986ce3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
LUAROCKS_VERSION=4.0.0
CC = gcc
MKDIR = mkdir
ZLIB_INCDIR = /usr/include
BZ2_INCDIR = /usr/include
OPENSSL_INCDIR = /usr/include
LIBM_INCDIR = /usr/include
DEPS_LIBS = -L$(ZLIB_INCDIR) -lz -L$(BZ2_INCDIR) -lbz2 -L$(OPENSSL_INCDIR) -lssl -lcrypto -L$(LIBM_INCDIR) -lm
all: luarocks
-include Makefile.vendor
luarocks: src/main.c gen/gen.h gen/libraries.h gen/main.h $(VENDOR_LIBS)
cd $(VENDOR_LUA_DIR)/src && make
$(CC) -o luarocks -I. -I$(VENDOR_LUA_DIR)/src src/main.c $(VENDOR_LIBS) $(VENDOR_LUA_DIR)/src/liblua.a $(DEPS_LIBS)
clean:
cd $(VENDOR_LUA_DIR)/src && make clean
rm -rf target
realclean: clean
rm -rf gen
gen: realclean
./bootstrap.tl $(LUAROCKS_VERSION)
|