aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
blob: cb0f72dd160f4df6436cc349f835ca9ac40b5bea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

CC = gcc
MKDIR = mkdir
MYLIBS = -llua -lz -lbz2 -lssl -lcrypto

ZLIB_INCDIR = /usr/include
BZ2_INCDIR = /usr/include
OPENSSL_INCDIR = /usr/include

all: luarocks

-include Makefile.vendor

luarocks: src/main.c gen/gen.h gen/libraries.h gen/main.h $(VENDOR_LIBS)
	$(CC) -o luarocks $(MYLIBS) -I. src/main.c $(VENDOR_LIBS)

clean:
	rm -rf gen target

gen: clean
	./bootstrap.tl