33 lines
746 B
Text
33 lines
746 B
Text
--- Makefile.orig 2007-08-20 06:42:05 UTC
|
|
+++ Makefile
|
|
@@ -15,9 +15,9 @@ lib += -L/usr/pkg/lib/mysql
|
|
lib += -L/usr/local/mysql
|
|
|
|
|
|
-CC := gcc
|
|
-CPPFLAGS := -O $(inc)
|
|
-CFLAGS := -g -W -Wall -DMAXFDS=4096
|
|
+CC ?= gcc
|
|
+CPPFLAGS += -O $(inc)
|
|
+CFLAGS ?= -g -W -Wall -DMAXFDS=4096
|
|
OS_NAME := $(shell uname | tr [A-Z] [a-z])
|
|
LDLIBS = $(lib) -lmysqlclient -lz
|
|
|
|
@@ -29,16 +29,7 @@ endif
|
|
@echo " compiling ${CFLAGS} $<"
|
|
@${CC} ${CPPFLAGS} ${CFLAGS} -o $@ -c $<
|
|
|
|
-all:
|
|
- @echo ""
|
|
- @echo "Possible options are:"
|
|
- @echo ""
|
|
- @echo " make build"
|
|
- @echo " make install | install-strip"
|
|
- @echo " make upgrade"
|
|
- @echo " make clean"
|
|
- @echo ""
|
|
- @exit
|
|
+all: build
|
|
|
|
build: policyd_banner policyd_start policyd cleanup stats
|
|
|