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
PREFIX = /usr
ETCDIR = /etc/$(PROGLNAME)
WWWDIR = /var/www/html/$(PROGLNAME)
TMPDIR = /var/cache/$(PROGLNAME)
LOCDIR = $(PREFIX)/share/$(PROGLNAME)
DOCDIR = $(PREFIX)/share/doc/$(PROGLNAME)-$(PROGVERSION)
LOGFILE = /var/log/squid/access.log
CC = gcc
SORT = /bin/sort
INSTALL = /usr/bin/install
LARGEFILE = yes
SATSEP = '
# CPU (allowed by gcc '-march' option: native, i486, pentium3, athlon, nocona, k8 ...)
SARCH = i586
ADDCFLAGS = \
-O4 -pipe -march=$(SARCH) -fomit-frame-pointer \
-std=c99 \
-W -Wall -Wextra -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
-Wreturn-type -Wswitch -Wshadow -Wcast-align -Wuninitialized \
-Wchar-subscripts -Wuninitialized -Wbad-function-cast -Wwrite-strings
ADDLDFLAGS = --relax -mrelax