Lines 1-46
Link Here
|
1 |
--- Makefile.orig 2015-12-31 09:25:07 UTC |
|
|
2 |
+++ Makefile |
3 |
@@ -1,5 +1,6 @@ |
4 |
-CFLAGS=-g -O2 -Wall -Wextra -Isrc -Isrc/mbedtls/include -pthread -rdynamic -DNDEBUG $(OPTFLAGS) -D_FILE_OFFSET_BITS=64 |
5 |
-LIBS=-lzmq -ldl -lsqlite3 $(OPTLIBS) |
6 |
+CFLAGS?=-g -O2 |
7 |
+CFLAGS+=-Wall -Wextra -Isrc -Isrc/mbedtls/include -pthread -rdynamic -DNDEBUG $(OPTFLAGS) -D_FILE_OFFSET_BITS=64 |
8 |
+LIBS=-L${LOCALBASE}/lib -lzmq -lsqlite3 $(OPTLIBS) |
9 |
PREFIX?=/usr/local |
10 |
|
11 |
get_objs = $(addsuffix .o,$(basename $(wildcard $(1)))) |
12 |
@@ -22,14 +23,14 @@ MAKEOPTS=OPTFLAGS="${NOEXTCFLAGS} ${OPTF |
13 |
# upon every make invocation, and must be done before the SOURCES variable, above |
14 |
# is lazily evaluated, or none of the src/mbedtls source files will be found |
15 |
|
16 |
-ifdef $($(shell \ |
17 |
- if git submodule status | grep '^-'; then \ |
18 |
- echo "mbedtls; init and update git submodule" 1>&2; \ |
19 |
- git submodule init && git submodule update; \ |
20 |
- fi )) |
21 |
-endif |
22 |
+#ifdef $($(shell \ |
23 |
+# if git submodule status | grep '^-'; then \ |
24 |
+# echo "mbedtls; init and update git submodule" 1>&2; \ |
25 |
+# git submodule init && git submodule update; \ |
26 |
+# fi )) |
27 |
+#endif |
28 |
|
29 |
-all: builddirs bin/mongrel2 tests m2sh procer |
30 |
+all: builddirs bin/mongrel2 filters config_modules m2sh procer |
31 |
|
32 |
dev: CFLAGS=-g -Wall -Isrc -Wall -Wextra $(OPTFLAGS) -D_FILE_OFFSET_BITS=64 |
33 |
dev: all |
34 |
@@ -220,9 +221,9 @@ netbsd: LIBS=-lzmq -lsqlite3 $(OPTLIBS) |
35 |
netbsd: dev |
36 |
|
37 |
|
38 |
-freebsd: OPTFLAGS += -I/usr/local/include |
39 |
-freebsd: OPTLIBS += -L/usr/local/lib -pthread |
40 |
-freebsd: LIBS=-lzmq -lsqlite3 $(OPTLIBS) |
41 |
+freebsd: OPTFLAGS += -I$(PREFIX)/include |
42 |
+freebsd: OPTLIBS += -L$(PREFIX)/lib -pthread |
43 |
+freebsd: LIBS=-L$(PREFIX)/lib -lzmq -lsqlite3 $(OPTLIBS) |
44 |
freebsd: all |
45 |
|
46 |
openbsd: OPTFLAGS += -I/usr/local/include |