-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile.inc
40 lines (31 loc) · 1007 Bytes
/
Makefile.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# @(#)Makefile.inc 8.1 (Berkeley) 5/31/93
# $FreeBSD: src/games/Makefile.inc,v 1.10.2.2 2002/02/18 16:02:39 ru Exp $
# $DragonFly: src/games/Makefile.inc,v 1.3 2006/10/08 16:22:34 pavalos Exp $
PREFIX?= /usr/local
BINDIR?= ${PREFIX}/bin
SHAREDIR= ${PREFIX}/share
MANDIR= ${SHAREDIR}/man/man
FILESDIR?= ${SHAREDIR}/games
VARDIR?= ${PREFIX}/var/games
WARNS?= 6
BINGRP?= staff
SHAREGRP?= staff
# cribbed from DragonflyBSD build system
NXCC?= ${CC}
NXCFLAGS?= ${CFLAGS:N-mtune*:N-mcpu*:N-march*}
.SUFFIXES: .nx .no
# .no == native object file, for helper code when cross building.
#
.c.no:
${NXCC} ${_${.IMPSRC:T}_FLAGS} ${NXCFLAGS} -c ${.IMPSRC} -o ${.TARGET}
.y.no:
${YACC} ${YFLAGS} ${.IMPSRC}
${NXCC} ${NXCFLAGS} -c y.tab.c -o ${.TARGET}
rm -f y.tab.c
.l.no:
${LEX} ${LFLAGS} -o${.TARGET}.c ${.IMPSRC}
${NXCC} ${NXCFLAGS} -c ${.TARGET}.c -o ${.TARGET}
rm -f ${.TARGET}.c
.no.nx .c.nx:
${NXCC} ${_${.IMPSRC:T}_FLAGS} ${NXCFLAGS} ${NXLDFLAGS} ${.IMPSRC} \
${NXLDLIBS} -o ${.TARGET}