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

# Copyright 2008 Roy Marples

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

all: depend ${PROG}

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

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

include ${MK}/sys.mk
include ${MK}/depend.mk