aboutsummaryrefslogtreecommitdiff
path: root/src/prog.mk
blob: 1d0f013f9cdc9448d2047655f1692df178b26694 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# rules to build a library
# based on FreeBSD's bsd.prog.mk

# Copyright 2008 Roy Marples

BINDIR?=		/sbin

OBJS+=			${SRCS:.c=.o}

INSTALL?=		install

all: ${PROG}

${PROG}: ${SCRIPTS} ${OBJS}
	${CC} ${CFLAGS} ${LDFLAGS} ${PROGLDFLAGS} ${CPPFLAGS} -o $@ ${OBJS} ${LDADD}

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