Mon, 17 Jan 2005 22:02:09 +0100
trunk: changeset 1934
Fixed everything that requires locale stuff to check CF_NO_LOCALE.
6 | 1 | ## |
2 | ## System settings | |
3 | ## | |
4 | ||
5 | ||
6 | ## | |
30 | 7 | ## Installation paths |
6 | 8 | ## |
9 | ||
51 | 10 | PREFIX=/usr/local/ |
6 | 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 | |
51 | 17 | LIBDIR=$(PREFIX)/lib |
30 | 18 | INCDIR=$(PREFIX)/include |
6 | 19 | |
20 | ||
21 | ## | |
30 | 22 | ## libc |
23 | ## | |
24 | ||
25 | # You may uncomment this if you know your system has | |
26 | # asprintf and vasprintf in the c library. (gnu libc has.) | |
27 | # If HAS_SYSTEM_ASPRINTF is not defined, an implementation | |
51 | 28 | # in sprintf_2.2/ is used. |
55 | 29 | HAS_SYSTEM_ASPRINTF=1 |
30 | 30 | |
6 | 31 | |
32 | ## | |
33 | ## C compiler | |
34 | ## | |
35 | ||
36 | CC=gcc | |
37 | ||
29 | 38 | # The POSIX_SOURCE, XOPEN_SOURCE and WARN options should not be necessary, |
16 | 39 | # they're mainly for development use. So, if they cause trouble (not |
40 | # the ones that should be used on your system or the system is broken), | |
41 | # just comment them out. | |
42 | ||
57 | 43 | C89_SOURCE=-ansi |
44 | POSIX_SOURCE=-D_POSIX_SOURCE | |
6 | 45 | |
51 | 46 | # Same as '-Wall -pedantic' without '-Wunused' as callbacks often |
6 | 47 | # have unused variables. |
48 | WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \ | |
29 | 49 | -Wtrigraphs -Wformat -Wchar-subscripts \ |
51 | 50 | -Wparentheses -pedantic -Wuninitialized |
29 | 51 | |
6 | 52 | |
55 | 53 | CFLAGS=-g -Os $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) |
9 | 54 | LDFLAGS=-g $(LIBS) $(EXTRA_LIBS) |
8 | 55 | |
56 | ||
57 | ## | |
58 | ## make depend | |
59 | ## | |
60 | ||
61 | DEPEND_FILE=.depend | |
62 | MAKE_DEPEND=$(CC) -M $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) > $(DEPEND_FILE) | |
6 | 63 | |
64 | ||
65 | ## | |
66 | ## AR | |
67 | ## | |
68 | ||
69 | AR=ar | |
29 | 70 | ARFLAGS=cr |
71 | RANLIB=ranlib | |
6 | 72 | |
73 | ||
74 | ## | |
75 | ## Install & strip | |
76 | ## | |
77 | ||
29 | 78 | # Should work almost everywhere |
79 | INSTALL=install | |
80 | # On a system with pure BSD install, -c might be preferred | |
81 | #INSTALL=install -c | |
82 | ||
83 | INSTALLDIR=mkdir -p | |
6 | 84 | |
85 | BIN_MODE=755 | |
86 | DATA_MODE=664 | |
87 | ||
88 | STRIP=strip |