Lines 1-32
Link Here
|
1 |
--- Makefile.orig Mon Oct 24 13:36:01 2005 |
1 |
--- Makefile.orig Wed Mar 15 07:02:14 2006 |
2 |
+++ Makefile Mon Oct 24 13:38:36 2005 |
2 |
+++ Makefile Mon Apr 3 11:17:09 2006 |
3 |
@@ -1,20 +1,8 @@ |
3 |
@@ -12,9 +12,9 @@ |
4 |
-# |
4 |
inc += -I/usr/pkg/include/mysql |
5 |
-# systems which install in /usr |
5 |
lib += -L/usr/pkg/lib/mysql |
6 |
-inc = -I/usr/include/mysql |
6 |
|
7 |
-lib = -L/usr/lib/mysql |
|
|
8 |
-# systems with single mysql subdir |
9 |
-inc += -I/usr/local/mysql/include -I/usr/local/mysql/include/mysql |
10 |
-lib += -L/usr/local/mysql/lib -L/usr/local/mysql/lib/mysql |
11 |
-# freebsd ports |
12 |
-inc += -I/usr/local/include/mysql |
13 |
-lib += -L/usr/local/lib/mysql |
14 |
-# netbsd pkgsrc |
15 |
-inc += -I/usr/pkg/include/mysql |
16 |
-lib += -L/usr/pkg/lib/mysql |
17 |
- |
18 |
-CC := gcc |
7 |
-CC := gcc |
19 |
-CPPFLAGS := -O $(inc) |
8 |
-CPPFLAGS := -O $(inc) |
20 |
-CFLAGS := -g -W -Wall -DMAXFDS=1023 |
9 |
-CFLAGS := -g -W -Wall -DMAXFDS=4096 |
21 |
+inc := -I$(LOCALBASE)/include/mysql |
|
|
22 |
+lib := -L$(LOCALBASE)/lib/mysql |
23 |
+CC ?= gcc |
10 |
+CC ?= gcc |
24 |
+CPPFLAGS += -O $(inc) |
11 |
+CPPFLAGS += -O $(inc) |
25 |
+CFLAGS ?= -g -W -Wall -DMAXFDS=1023 |
12 |
+CFLAGS ?= -g -W -Wall -DMAXFDS=4096 |
26 |
OS_NAME := $(shell uname | tr [A-Z] [a-z]) |
13 |
OS_NAME := $(shell uname | tr [A-Z] [a-z]) |
27 |
LDLIBS = $(lib) -lmysqlclient -lz |
14 |
LDLIBS = $(lib) -lmysqlclient -lz |
28 |
|
15 |
|
29 |
@@ -26,15 +14,7 @@ |
16 |
@@ -26,15 +26,7 @@ |
30 |
@echo " compiling ${CFLAGS} $<" |
17 |
@echo " compiling ${CFLAGS} $<" |
31 |
@${CC} ${CPPFLAGS} ${CFLAGS} -o $@ -c $< |
18 |
@${CC} ${CPPFLAGS} ${CFLAGS} -o $@ -c $< |
32 |
|
19 |
|
Lines 39-45
Link Here
|
39 |
- @echo " make clean" |
26 |
- @echo " make clean" |
40 |
- @echo "" |
27 |
- @echo "" |
41 |
- @exit |
28 |
- @exit |
42 |
+all: build |
29 |
+all: build |
43 |
|
30 |
|
44 |
build: policyd cleanup stats |
31 |
build: policyd cleanup stats |