View | Details | Raw Unified | Return to bug 55844
Collapse All | Expand All

(-)src/Makefile (-3 / +16 lines)
Lines 2-16 Link Here
2
# Please read docs/Readme.html, or http://www.analog.cx/
2
# Please read docs/Readme.html, or http://www.analog.cx/
3
# This is a general Unix-like Makefile: Makefiles for other OS's can be found
3
# This is a general Unix-like Makefile: Makefiles for other OS's can be found
4
#   in the "build" directory.
4
#   in the "build" directory.
5
CC = gcc           # which compiler to use: eg cc, acc, gcc. NB Different
5
CC ?= gcc           # which compiler to use: eg cc, acc, gcc. NB Different
6
#                    compilers need different CFLAGS, e.g., -O instead of -O2.
6
#                    compilers need different CFLAGS, e.g., -O instead of -O2.
7
MAKE = make        # which "make" to use
7
MAKE = make        # which "make" to use
8
CFLAGS = -O2    # options, e.g. for optimisation or ANSI compilation.
8
CFLAGS += -I${LOCALBASE}/include -I${LOCALBASE}/include/gd
9
#CFLAGS = -O2    # options, e.g. for optimisation or ANSI compilation.
9
#                 HP/UX cc needs CFLAGS = -Aa (HP/UX 9) or -Ae (HP/UX 10)
10
#                 HP/UX cc needs CFLAGS = -Aa (HP/UX 9) or -Ae (HP/UX 10)
10
#                 BeOS needs CFLAGS = -O2 -Wl,-L/boot/home/config/lib
11
#                 BeOS needs CFLAGS = -O2 -Wl,-L/boot/home/config/lib
11
#                 BS2000/OSD needs CFLAGS = -XLLML -XLLMK
12
#                 BS2000/OSD needs CFLAGS = -XLLML -XLLMK
12
#                 NeXTSTEP needs CFLAGS = -O2 -pipe -no-precomp 
13
#                 NeXTSTEP needs CFLAGS = -O2 -pipe -no-precomp 
13
DEFS =          # any combination of -DNOPIPES -DNODNS -DNODIRENT -DNOGLOB ...
14
DEFS = -DLOGFILE=\"/var/log/httpd-access.log\" \
15
       -DIMAGEDIR=\"/images/\" \
16
       -DDEFAULTCONFIGFILE=\"$(PREFIX)/etc/analog.cfg\" \
17
       -DLANGDIR=\"${PREFIX}/share/analog/lang/\" \
18
       -DCONFIGDIR=\"$(PREFIX)/share/analog/\" \
19
       -DHAVE_ZLIB
20
#DEFS =          # any combination of -DNOPIPES -DNODNS -DNODIRENT -DNOGLOB ...
14
#                 ... -DNOOPEN -DNOFOLLOW -DNOALARM -DNOGRAPHICS -DNOGMTIME ...
21
#                 ... -DNOOPEN -DNOFOLLOW -DNOALARM -DNOGRAPHICS -DNOGMTIME ...
15
#                 ... -DEBCDIC -DUSE_PLAIN_SETJMP ...
22
#                 ... -DEBCDIC -DUSE_PLAIN_SETJMP ...
16
#                 ... -DHAVE_GD -DHAVE_ZLIB -DHAVE_PCRE ...
23
#                 ... -DHAVE_GD -DHAVE_ZLIB -DHAVE_PCRE ...
Lines 30-35 Link Here
30
OS = UNIX         # Operating system: UNIX, DOS, WIN32, MAC, OS2, OSX, VMS
37
OS = UNIX         # Operating system: UNIX, DOS, WIN32, MAC, OS2, OSX, VMS
31
#                   RISCOS, BEOS, NEXTSTEP, MPEIX, BS2000, AS400, OS390
38
#                   RISCOS, BEOS, NEXTSTEP, MPEIX, BS2000, AS400, OS390
32
LIBS = -lm  # extra libraries needed; most platforms (but not OS X or BeOS)
39
LIBS = -lm  # extra libraries needed; most platforms (but not OS X or BeOS)
40
41
.if !defined(WITHOUT_GD)
42
DEFS+= -DHAVE_GD
43
LIBS+=  -L${LOCALBASE}/lib -lgd -lpng -ljpeg -lz
44
.endif
45
33
#               need -lm LAST
46
#               need -lm LAST
34
#             if you defined HAVE_GD above you also need -lgd -lpng -ljpeg -lz
47
#             if you defined HAVE_GD above you also need -lgd -lpng -ljpeg -lz
35
#             if you defined HAVE_ZLIB above you also need -lz
48
#             if you defined HAVE_ZLIB above you also need -lz

Return to bug 55844