diff options
author | Jason A. Donenfeld | 2014-01-13 14:18:51 +0100 |
---|---|---|
committer | Jason A. Donenfeld | 2014-01-14 02:00:07 +0100 |
commit | f43b228d0bca5791be98ff3fbb2f8743219635b6 (patch) | |
tree | 2200619d48fd24f5e809736ff94c84a57da4481f /cgit.mk | |
parent | e83b51b4f6bd53efea0c772e6ecdf1c5605ca611 (diff) | |
download | cgit-f43b228d0bca5791be98ff3fbb2f8743219635b6.tar.gz cgit-f43b228d0bca5791be98ff3fbb2f8743219635b6.tar.bz2 cgit-f43b228d0bca5791be98ff3fbb2f8743219635b6.zip |
filter: add lua support
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'cgit.mk')
-rw-r--r-- | cgit.mk | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -25,6 +25,25 @@ ifdef NO_C99_FORMAT | |||
25 | CFLAGS += -DNO_C99_FORMAT | 25 | CFLAGS += -DNO_C99_FORMAT |
26 | endif | 26 | endif |
27 | 27 | ||
28 | ifdef NO_LUA | ||
29 | CFLAGS += -DNO_LUA | ||
30 | else | ||
31 | |||
32 | ifeq (VANILLA,$(LUA_IMPLEMENTATION)) | ||
33 | CFLAGS += -llua | ||
34 | else | ||
35 | LUAJIT_LIBS := $(shell pkg-config --libs luajit) | ||
36 | LUAJIT_CFLAGS := $(shell pkg-config --cflags luajit) | ||
37 | CGIT_LIBS += $(LUAJIT_LIBS) | ||
38 | CFLAGS += $(LUAJIT_CFLAGS) | ||
39 | endif | ||
40 | |||
41 | endif | ||
42 | |||
43 | CGIT_LIBS += -ldl | ||
44 | |||
45 | |||
46 | |||
28 | CGIT_OBJ_NAMES += cgit.o | 47 | CGIT_OBJ_NAMES += cgit.o |
29 | CGIT_OBJ_NAMES += cache.o | 48 | CGIT_OBJ_NAMES += cache.o |
30 | CGIT_OBJ_NAMES += cmd.o | 49 | CGIT_OBJ_NAMES += cmd.o |
@@ -61,9 +80,6 @@ $(CGIT_VERSION_OBJS): $(CGIT_PREFIX)VERSION | |||
61 | $(CGIT_VERSION_OBJS): EXTRA_CPPFLAGS = \ | 80 | $(CGIT_VERSION_OBJS): EXTRA_CPPFLAGS = \ |
62 | -DCGIT_VERSION='"$(CGIT_VERSION)"' | 81 | -DCGIT_VERSION='"$(CGIT_VERSION)"' |
63 | 82 | ||
64 | CGIT_LIBS += -ldl | ||
65 | |||
66 | |||
67 | # Git handles dependencies using ":=" so dependencies in CGIT_OBJ are not | 83 | # Git handles dependencies using ":=" so dependencies in CGIT_OBJ are not |
68 | # handled by that and we must handle them ourselves. | 84 | # handled by that and we must handle them ourselves. |
69 | cgit_dep_files := $(foreach f,$(CGIT_OBJS),$(dir $f).depend/$(notdir $f).d) | 85 | cgit_dep_files := $(foreach f,$(CGIT_OBJS),$(dir $f).depend/$(notdir $f).d) |