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
31
|
--- Makefile.orig Thu Feb 1 08:58:17 2001
+++ Makefile Sun Feb 11 16:06:14 2001
@@ -7,7 +7,7 @@
# -Ae (HP/UX 10); BS2000/OSD requires -XLLML -XLLMK;
# NeXTSTEP apparently needs...
# CEXTRAFLAGS = -O2 -pipe -no-precomp
-DEFS = # any of -DNOPIPES -DNODNS -DNODIRENT -DNOOPEN ...
+#DEFS = # any of -DNOPIPES -DNODNS -DNODIRENT -DNOOPEN ...
# ... -DEBCDIC -DNOGMTIME -DNEED_STRCMP -DNEED_MEMMOVE ...
# ... -DNEED_STRTOUL -DNEED_DIFFTIME -DHAVE_ADDR_T ...
# ... -DNEED_FLOATINGPOINT_H
@@ -18,6 +18,10 @@
# DYNIX/ptx reportedly needs -D_SOCKET_VERSION=11
# MPE/iX needs -D_POSIX_SOURCE -D_SOCKET_SOURCE
# All the options are explained at the bottom of this file.
+DEFS = -DANALOGDIR=\"$(PREFIX)/lib/analog/\" \
+ -DLOGFILE=\"/var/log/httpd-access.log\" \
+ -DIMAGEDIR=\"/images/\" \
+ -DDEFAULTCONFIGFILE=\"$(PREFIX)/etc/analog.cfg\"
OS = UNIX # Operating system: UNIX, DOS, WIN32, MAC, OS2, OSX, VMS,
# RISCOS, BEOS, NEXTSTEP, MPEIX, BS2000, AS400
LIBS = # extra libraries needed; Solaris 2 (SunOS 5) needs
@@ -33,7 +37,7 @@
input.o macinput.o macstuff.o output.o output2.o pcre.o process.o \
settings.o sort.o tree.o utils.o win32.o
HEADERS = anlghead.h anlghea2.h anlghea3.h anlghea4.h macdir.h pcre.h
-CFLAGS = $(CEXTRAFLAGS) $(DEFS) -D$(OS)
+CFLAGS += $(DEFS) -D$(OS)
$(PROGRAM): $(OBJS) $(HEADERS) Makefile
$(CC) $(CEXTRAFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS)
|