aboutsummaryrefslogtreecommitdiff
path: root/src/prog.mk
blob: 9a222e7db92a30dbb9ad534e1e30161b8840046c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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: depend ${PROG}

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

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

include $(TOPDIR)/depend.mk