Rune - Clean up strings
[rune.git] / Makefile.inc
1 # Makefile for rune
2 #
3 # Master definitions
4 #
5 # WARNING: If using a different install location, be sure to compile
6 #          Rune with it, not just install it.
7
8 CFLAGS+= -O2
9 DEBUG_FLAGS?= -g
10 BINDIR?= /bin
11 #LIBDIR?= /lib
12
13 # All shells should set USER but in case they don't...
14 #
15 .if "${USER}" == ""
16 USER != id -u
17 .endif
18
19 # Not all shells set GROUP env
20 #
21 .if "${GROUP}" == ""
22 GROUP != id -g
23 .endif
24 BINOWN?= ${USER}
25 BINGRP?= ${GROUP}
26 UID != id -u
27 .if ${UID} == 0
28 RUNEDEST?= /usr/local
29 RUNEDIR?= rune
30 SOFTBIN?= ${RUNEDEST}/bin
31 .else
32 RUNEDEST?= ${HOME}
33 RUNEDIR?= .rune
34 SOFTBIN?= ${HOME}/bin
35 .endif
36 DESTDIR?= ${RUNEDEST}/${RUNEDIR}
37 LDFLAGS+= -rpath=${DESTDIR}/${LIBDIR}
38 SHLIB_MAJOR?= 1
39 WARNS?= 6
40
41 # XXX hack
42 #
43 LIBC= ${LIBDIR}/libc.a
44