Tue, 11 Mar 2003 20:01:42 +0100
trunk: changeset 51
minor glitch
6 | 1 | ## |
2 | ## System settings | |
3 | ## | |
4 | ||
5 | ||
6 | ## | |
30 | 7 | ## Installation paths |
6 | 8 | ## |
9 | ||
10 | PREFIX=/usr/local | |
11 | ||
30 | 12 | # No need to modify these usually |
13 | BINDIR=$(PREFIX)/bin | |
14 | ETCDIR=$(PREFIX)/etc | |
15 | MANDIR=$(PREFIX)/man | |
16 | DOCDIR=$(PREFIX)/doc | |
17 | # Not used | |
18 | INCDIR=$(PREFIX)/include | |
19 | LIBDIR=$(PREFIX)/lib | |
6 | 20 | |
21 | ||
22 | ## | |
38 | 23 | ## Modules |
24 | ## | |
25 | ||
26 | #MODULE_SUPPORT=-DCF_NO_MODULE_SUPPORT | |
27 | MODULE_SUPPORT_LDFLAGS=-export-dynamic -ldl | |
28 | ||
29 | ||
30 | ## | |
6 | 31 | ## X libraries, includes and options |
32 | ## | |
33 | ||
34 | X11_PREFIX=/usr/X11R6 | |
35 | ||
36 | # SunOS/Solaris | |
37 | #X11_PREFIX=/usr/openwin | |
38 | ||
7 | 39 | X11_LIBS=-L$(X11_PREFIX)/lib |
40 | X11_INCLUDES=-I$(X11_PREFIX)/include | |
6 | 41 | X11_DEFINES= |
42 | ||
30 | 43 | #EXTRA_INCLUDES = -I$(PREFIX)/include |
44 | #EXTRA_LIBS = -L$(PREFIX)/lib | |
45 | ||
46 | ||
47 | ## | |
48 | ## libc | |
49 | ## | |
50 | ||
51 | # You may uncomment this if you know your system has | |
52 | # asprintf and vasprintf in the c library. (gnu libc has.) | |
53 | # If HAS_SYSTEM_ASPRINTF is not defined, an implementation | |
38 | 54 | # in libtu/sprintf_2.2/ is used. |
30 | 55 | #HAS_SYSTEM_ASPRINTF=1 |
56 | ||
6 | 57 | |
58 | ## | |
59 | ## C compiler | |
60 | ## | |
61 | ||
62 | CC=gcc | |
63 | ||
29 | 64 | # The POSIX_SOURCE, XOPEN_SOURCE and WARN options should not be necessary, |
16 | 65 | # they're mainly for development use. So, if they cause trouble (not |
66 | # the ones that should be used on your system or the system is broken), | |
67 | # just comment them out. | |
68 | ||
69 | # libtu/ uses POSIX_SOURCE | |
70 | ||
71 | POSIX_SOURCE=-ansi -D_POSIX_SOURCE | |
72 | ||
29 | 73 | # and . (ion) XOPEN_SOURCE. |
74 | # There is variation among systems what should be used and how they interpret | |
75 | # it so it is perhaps better not using anything at all. | |
16 | 76 | |
29 | 77 | # Most systems |
16 | 78 | #XOPEN_SOURCE=-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED |
29 | 79 | # sunos, (irix) |
8 | 80 | #XOPEN_SOURCE=-ansi -D__EXTENSIONS__ |
6 | 81 | |
82 | # Same as '-Wall -pedantic-errors' without '-Wunused' as callbacks often | |
83 | # have unused variables. | |
84 | WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \ | |
29 | 85 | -Wtrigraphs -Wformat -Wchar-subscripts \ |
86 | -Wparentheses -pedantic-errors -Wuninitialized | |
87 | ||
6 | 88 | |
9 | 89 | CFLAGS=-g -O2 $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) |
90 | LDFLAGS=-g $(LIBS) $(EXTRA_LIBS) | |
8 | 91 | |
92 | ||
93 | ## | |
94 | ## make depend | |
95 | ## | |
96 | ||
97 | DEPEND_FILE=.depend | |
98 | MAKE_DEPEND=$(CC) -M $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) > $(DEPEND_FILE) | |
6 | 99 | |
100 | ||
101 | ## | |
102 | ## AR | |
103 | ## | |
104 | ||
105 | AR=ar | |
29 | 106 | ARFLAGS=cr |
107 | RANLIB=ranlib | |
6 | 108 | |
109 | ||
110 | ## | |
111 | ## Install & strip | |
112 | ## | |
113 | ||
29 | 114 | # Should work almost everywhere |
115 | INSTALL=install | |
116 | # On a system with pure BSD install, -c might be preferred | |
117 | #INSTALL=install -c | |
118 | ||
119 | INSTALLDIR=mkdir -p | |
6 | 120 | |
121 | BIN_MODE=755 | |
122 | DATA_MODE=664 | |
123 | ||
124 | STRIP=strip |