aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 55c2142..c5966c5 100644
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,8 @@ LUA_CMODULE_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION)
23LUA_MODULE_DIR ?= $(PREFIX)/share/lua/$(LUA_VERSION) 23LUA_MODULE_DIR ?= $(PREFIX)/share/lua/$(LUA_VERSION)
24LUA_BIN_DIR ?= $(PREFIX)/bin 24LUA_BIN_DIR ?= $(PREFIX)/bin
25 25
26AR= $(CC) -o
27
26##### Platform overrides ##### 28##### Platform overrides #####
27## 29##
28## Tweak one of the platform sections below to suit your situation. 30## Tweak one of the platform sections below to suit your situation.
@@ -84,12 +86,12 @@ OBJS = lua_cjson.o strbuf.o $(FPCONV_OBJS)
84 86
85.PHONY: all clean install install-extra doc 87.PHONY: all clean install install-extra doc
86 88
87.SUFFIXES: .html .txt 89.SUFFIXES: .html .adoc
88 90
89.c.o: 91.c.o:
90 $(CC) -c $(CFLAGS) $(CPPFLAGS) $(BUILD_CFLAGS) -o $@ $< 92 $(CC) -c $(CFLAGS) $(CPPFLAGS) $(BUILD_CFLAGS) -o $@ $<
91 93
92.txt.html: 94.adoc.html:
93 $(ASCIIDOC) -n -a toc $< 95 $(ASCIIDOC) -n -a toc $<
94 96
95all: $(TARGET) 97all: $(TARGET)
@@ -97,7 +99,7 @@ all: $(TARGET)
97doc: manual.html performance.html 99doc: manual.html performance.html
98 100
99$(TARGET): $(OBJS) 101$(TARGET): $(OBJS)
100 $(CC) $(LDFLAGS) $(CJSON_LDFLAGS) -o $@ $(OBJS) 102 $(AR) $@ $(LDFLAGS) $(CJSON_LDFLAGS) $(OBJS)
101 103
102install: $(TARGET) 104install: $(TARGET)
103 mkdir -p $(DESTDIR)$(LUA_CMODULE_DIR) 105 mkdir -p $(DESTDIR)$(LUA_CMODULE_DIR)