Sat, 26 Feb 2005 23:10:51 +0100
Increased FOR_ALL macro reuse.
## ## System settings ## ## ## Installation paths ## PREFIX=/usr/local/ # No need to modify these usually BINDIR=$(PREFIX)/bin ETCDIR=$(PREFIX)/etc MANDIR=$(PREFIX)/man DOCDIR=$(PREFIX)/doc LIBDIR=$(PREFIX)/lib INCDIR=$(PREFIX)/include ## ## libc ## # You may uncomment this if you know your system has # asprintf and vasprintf in the c library. (gnu libc has.) # If HAS_SYSTEM_ASPRINTF is not defined, an implementation # in sprintf_2.2/ is used. HAS_SYSTEM_ASPRINTF=1 ## ## C compiler ## CC=gcc # The POSIX_SOURCE, XOPEN_SOURCE and WARN options should not be necessary, # they're mainly for development use. So, if they cause trouble (not # the ones that should be used on your system or the system is broken), # just comment them out. C89_SOURCE=-ansi POSIX_SOURCE=-D_POSIX_SOURCE # Same as '-Wall -pedantic' without '-Wunused' as callbacks often # have unused variables. WARN= -W -Wimplicit -Wreturn-type -Wswitch -Wcomment \ -Wtrigraphs -Wformat -Wchar-subscripts \ -Wparentheses -pedantic -Wuninitialized CFLAGS=-g -Os $(WARN) $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) LDFLAGS=-g $(LIBS) $(EXTRA_LIBS) ## ## make depend ## DEPEND_FILE=.depend MAKE_DEPEND=$(CC) -M $(DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) > $(DEPEND_FILE) ## ## AR ## AR=ar ARFLAGS=cr RANLIB=ranlib ## ## Install & strip ## # Should work almost everywhere INSTALL=install # On a system with pure BSD install, -c might be preferred #INSTALL=install -c INSTALLDIR=mkdir -p BIN_MODE=755 DATA_MODE=664 STRIP=strip