summaryrefslogtreecommitdiff
path: root/lib/libcurses++/Makefile
blob: 137fbad35388d1442169238f76a6ac0c2c881e4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#	$OpenBSD: Makefile,v 1.2 1999/05/27 23:21:20 millert Exp $

# Uncomment this to enable tracing in libcurses
#CURSESTRACE=-DTRACE

LIB=    curses++
SRCS=	cursesapp.cc cursesf.cc cursesm.cc cursesmain.cc cursesp.cc \
	cursesw.cc cursslk.cc
HEADERS=cursesapp.h cursesf.h cursesm.h cursesp.h cursesw.h etip.h cursslk.h

CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../libcurses ${CURSESTRACE}

includes:
	@test -d ${DESTDIR}/usr/include/g++ || \
	    install -d -o root -g bin -m 755 /usr/include/g++
	@for i in ${HEADERS}; do \
	    cmp -s ${DESTDIR}/usr/include/g++/$$i ${.CURDIR}/$$i || \
		${INSTALL} ${INSTALL_COPY} -m 444 -o $(BINOWN) -g $(BINGRP) \
		${.CURDIR}/$$i ${DESTDIR}/usr/include/g++/$$i; \
	done

.include <bsd.lib.mk>