summaryrefslogtreecommitdiff
path: root/comms/tn3270/files/mk/setup.mk
blob: 8a1119eb46598e841761265aa552dae6197a93d0 (plain)
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
41
42
43
44
45
46
47
48
#	$NetBSD: setup.mk,v 1.2 2010/01/17 02:11:15 dholland Exp $

KBD= unix.kbd

############################################################
# installation

DESTDIR?=# empty
PREFIX?=/usr/local

PKGMANDIR?=man

BINDIR?=$(PREFIX)/bin
MAN1DIR?=$(PREFIX)/$(PKGMANDIR)/man1
MAN5DIR?=$(PREFIX)/$(PKGMANDIR)/man5
SHAREDIR?=$(PREFIX)/share/tn3270

BINMODE?=755
MANMODE?=644
FILESMODE?=644

############################################################
# compile flags

CFLAGS+=-fstack-protector -Wstack-protector --param ssp-buffer-size=1
CFLAGS+=-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
CFLAGS+=-Wsign-compare -Wno-traditional -Wno-pointer-sign
CFLAGS+=-DTERMCAP -DSRCRT -DKLUDGELINEMODE -DUSE_TERMIO -DTN3270 -Dunix

############################################################
# programs

CC?=cc
CFLAGS?=-O

MKDEP?=$(CC) -MM

INSTALL?=install

INSTALLDIR=$(INSTALL) -d
INSTALLBIN?=$(INSTALL) -c -m $(BINMODE)
INSTALLMAN?=$(INSTALL) -c -m $(MANMODE)
INSTALLFILE?=$(INSTALL) -c -m $(FILESMODE)

############################################################
# substitutions

CFLAGS+=-DPATH_MAP3270=\"$(SHAREDIR)/map3270\"