summaryrefslogtreecommitdiff
path: root/ports/oed/files/Makefile
blob: 929fddb28e879260bf3dda24643b463bd8a99c2e (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
# This Makefile automatically generated by configure.

CC =	x86_64-camellia-gcc
CFLAGS =	-g -O2 -I. -D_GNU_SOURCE

PREFIX =	/usr/local
MANDIR =	/usr/local/man

PROG =	ed
OBJS =	buf.o glbl.o io.o main.o re.o sub.o undo.o \
	regcomp.o regerror.o regexec.o regfree.o \
	reallocarray.o strlcat.o strlcpy.o

all: ${PROG}

${PROG}: ${OBJS}
	${CC} ${LDFLAGS} -o ${PROG} ${OBJS}

install:
	install -d ${DESTDIR}${PREFIX}/bin
	install -d ${DESTDIR}${MANDIR}/man1
	install -c -s -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin
	install -c -m 644 ed.1 ${DESTDIR}${MANDIR}/man1/${PROG}.1

test:
	@echo "No tests"

clean:
	rm -f ${PROG} ${OBJS}

distclean: clean
	rm -f Makefile config.h