Mon, 07 May 2012 15:25:18 +0200
-DCF_NO_GETTEXT option to system.mk
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 | ## | |
115
f60f9a415d1b
-DCF_NO_GETTEXT option to system.mk
Tuomo Valkonen <tuomov@iki.fi>
parents:
95
diff
changeset
|
22 | ## Gettext |
f60f9a415d1b
-DCF_NO_GETTEXT option to system.mk
Tuomo Valkonen <tuomov@iki.fi>
parents:
95
diff
changeset
|
23 | ## |
f60f9a415d1b
-DCF_NO_GETTEXT option to system.mk
Tuomo Valkonen <tuomov@iki.fi>
parents:
95
diff
changeset
|
24 | |
f60f9a415d1b
-DCF_NO_GETTEXT option to system.mk
Tuomo Valkonen <tuomov@iki.fi>
parents:
95
diff
changeset
|
25 | #DEFINES += -DCF_NO_GETTEXT |
f60f9a415d1b
-DCF_NO_GETTEXT option to system.mk
Tuomo Valkonen <tuomov@iki.fi>
parents:
95
diff
changeset
|
26 | |
f60f9a415d1b
-DCF_NO_GETTEXT option to system.mk
Tuomo Valkonen <tuomov@iki.fi>
parents:
95
diff
changeset
|
27 | ## |
30 | 28 | ## libc |
29 | ## | |
30 | ||
31 | # You may uncomment this if you know your system has | |
32 | # asprintf and vasprintf in the c library. (gnu libc has.) | |
33 | # If HAS_SYSTEM_ASPRINTF is not defined, an implementation | |
51 | 34 | # in sprintf_2.2/ is used. |
55 | 35 | HAS_SYSTEM_ASPRINTF=1 |
30 | 36 | |
6 | 37 | |
38 | ## | |
39 | ## C compiler | |
40 | ## | |
41 | ||
42 | CC=gcc | |
43 | ||
29 | 44 | # The POSIX_SOURCE, XOPEN_SOURCE and WARN options should not be necessary, |
16 | 45 | # they're mainly for development use. So, if they cause trouble (not |
46 | # the ones that should be used on your system or the system is broken), | |
47 | # just comment them out. | |
48 | ||
57 | 49 | C89_SOURCE=-ansi |
50 | POSIX_SOURCE=-D_POSIX_SOURCE | |
6 | 51 | |
51 | 52 | # Same as '-Wall -pedantic' without '-Wunused' as callbacks often |
6 | 53 | # have unused variables. |
54 | WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \ | |
29 | 55 | -Wtrigraphs -Wformat -Wchar-subscripts \ |
51 | 56 | -Wparentheses -pedantic -Wuninitialized |
29 | 57 | |
6 | 58 | |
55 | 59 | CFLAGS=-g -Os $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) |
9 | 60 | LDFLAGS=-g $(LIBS) $(EXTRA_LIBS) |
8 | 61 | |
62 | ||
63 | ## | |
64 | ## make depend | |
65 | ## | |
66 | ||
67 | DEPEND_FILE=.depend | |
68 | MAKE_DEPEND=$(CC) -M $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) > $(DEPEND_FILE) | |
6 | 69 | |
70 | ||
71 | ## | |
72 | ## AR | |
73 | ## | |
74 | ||
75 | AR=ar | |
29 | 76 | ARFLAGS=cr |
77 | RANLIB=ranlib | |
6 | 78 | |
79 | ||
80 | ## | |
81 | ## Install & strip | |
82 | ## | |
83 | ||
29 | 84 | # Should work almost everywhere |
95 | 85 | INSTALL=sh $(TOPDIR)/install-sh -c |
29 | 86 | INSTALLDIR=mkdir -p |
6 | 87 | |
88 | BIN_MODE=755 | |
89 | DATA_MODE=664 | |
90 | ||
91 | STRIP=strip |