summaryrefslogtreecommitdiff
path: root/package/mongrel2/patches/patch-Makefile
blob: 182389538fcdad7777ea0841c57da0e6dbc9f441 (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
--- mongrel2-v1.11.0.orig/Makefile	2015-12-31 10:25:17.000000000 +0100
+++ mongrel2-v1.11.0/Makefile	2016-04-25 20:21:46.996240089 +0200
@@ -1,6 +1,7 @@
-CFLAGS=-g -O2 -Wall -Wextra -Isrc -Isrc/mbedtls/include -pthread -rdynamic -DNDEBUG $(OPTFLAGS) -D_FILE_OFFSET_BITS=64
+CFLAGS?=
+CFLAGS+=-Wall -Wextra -Isrc -Isrc/mbedtls/include -pthread -rdynamic -DNDEBUG $(OPTFLAGS) -D_FILE_OFFSET_BITS=64
 LIBS=-lzmq -ldl -lsqlite3 $(OPTLIBS)
-PREFIX?=/usr/local
+PREFIX?=/usr
 
 get_objs = $(addsuffix .o,$(basename $(wildcard $(1))))
 
@@ -29,7 +30,7 @@ ifdef $($(shell									\
 	fi ))
 endif
 
-all: builddirs bin/mongrel2 tests m2sh procer
+all: builddirs bin/mongrel2 m2sh procer
 
 dev: CFLAGS=-g -Wall -Isrc -Wall -Wextra $(OPTFLAGS) -D_FILE_OFFSET_BITS=64
 dev: all
@@ -160,8 +161,6 @@ install: all
 	    || ( install -d $(DESTDIR)/$(PREFIX)/bin/ \
 	        && install bin/mongrel2 $(DESTDIR)/$(PREFIX)/bin/ )
 	${MAKE} ${MAKEOPTS} -C tools/m2sh install
-	${MAKE} ${MAKEOPTS} -C tools/config_modules install
-	${MAKE} ${MAKEOPTS} -C tools/filters install
 	${MAKE} ${MAKEOPTS} -C tools/procer install
 
 examples/python/mongrel2/sql/config.sql: src/config/config.sql src/config/mimetypes.sql