1999-06-30 19:27:31 +00:00
|
|
|
--- Makefile.real.orig Wed Mar 11 10:23:51 1998
|
|
|
|
+++ Makefile.real Tue Jun 29 15:21:37 1999
|
1999-06-22 17:24:35 +00:00
|
|
|
@@ -1,31 +1,31 @@
|
1999-06-09 01:39:22 +00:00
|
|
|
# Makefile for Squirm
|
|
|
|
#
|
|
|
|
|
|
|
|
-OFILES = squirm.o main.o config.o log.o lists.o regex.o
|
|
|
|
+OFILES = squirm.o main.o config.o log.o lists.o #regex.o
|
|
|
|
|
|
|
|
-HFILES = squirm.h paths.h lists.h log.h regex.h
|
|
|
|
+HFILES = squirm.h paths.h lists.h log.h #regex.h
|
|
|
|
|
|
|
|
-CC=gcc
|
1999-06-22 17:24:35 +00:00
|
|
|
+PREFIX?= /usr/local
|
|
|
|
+CC?= cc
|
1999-06-09 01:39:22 +00:00
|
|
|
#CC=checkergcc
|
|
|
|
|
1999-06-22 17:24:35 +00:00
|
|
|
#EXTRALIBS=-lregex
|
|
|
|
-#EXTRALIBS=
|
|
|
|
+EXTRALIBS= -lgnuregex
|
1999-06-09 01:39:22 +00:00
|
|
|
|
|
|
|
BINARIES = squirm
|
|
|
|
|
|
|
|
-CFLAGS = -O3 -Wall -funroll-loops
|
1999-06-22 17:24:35 +00:00
|
|
|
+CFLAGS?= -O3 -Wall -funroll-loops
|
1999-06-09 01:39:22 +00:00
|
|
|
#CFLAGS = -Wall -g
|
|
|
|
|
|
|
|
all: $(BINARIES)
|
|
|
|
|
|
|
|
install: all
|
|
|
|
- install -m 755 -o root -g root -d /usr/local/squirm \
|
|
|
|
- /usr/local/squirm/bin
|
1999-06-22 17:24:35 +00:00
|
|
|
- install -m 770 -o root -g squid -d /usr/local/squirm/etc
|
1999-06-09 01:39:22 +00:00
|
|
|
- install -m 750 -o squid -g squid -d /usr/local/squirm/logs
|
|
|
|
- install -m 660 -o root -g squid squirm.local.dist squirm.patterns.dist \
|
|
|
|
- /usr/local/squirm/etc
|
|
|
|
- install -m 755 -o root -g root --strip squirm /usr/local/squirm/bin
|
1999-06-22 17:24:35 +00:00
|
|
|
+ install -c -m 755 -o root -g wheel -d $(PREFIX)/squirm
|
1999-06-30 19:27:31 +00:00
|
|
|
+ install -c -m 750 -o root -g $(SQUID_GID) -d $(PREFIX)/etc/squirm
|
|
|
|
+ install -c -m 750 -o $(SQUID_UID) -g $(SQUID_GID) -d $(PREFIX)/squirm/logs
|
|
|
|
+ install -c -m 640 -o root -g $(SQUID_GID) squirm.local.dist squirm.patterns.dist \
|
1999-06-22 17:24:35 +00:00
|
|
|
+ $(PREFIX)/etc/squirm
|
|
|
|
+ install -c -m 755 -o root -g wheel --strip squirm $(PREFIX)/bin
|
1999-06-09 01:39:22 +00:00
|
|
|
|
|
|
|
squirm.o: squirm.c $(HFILES)
|
|
|
|
$(CC) -c squirm.c $(CFLAGS)
|