blob: d7dc50faa295f8a42092f6cb60ebe10810dfbf83 (
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
|
# $OpenBSD: Makefile,v 1.4 1999/05/29 20:46:59 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
CLEANFILES+=demo
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../libcurses ${CURSESTRACE}
includes:
@test -d ${DESTDIR}/usr/include/g++ || \
install -d -o root -g bin -m 755 ${DESTDIR}/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
demo:
${CXX} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.CURDIR}/demo.cc -lform -lmenu -lpanel -lcurses -lcurses++ ${LDADD}
.include <bsd.lib.mk>
|