openrc/src/prog.mk

18 lines
304 B
Makefile
Raw Normal View History

# 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}
2008-01-07 15:09:44 +05:30
${CC} ${CFLAGS} ${LDFLAGS} ${PROGLDFLAGS} -o $@ ${OBJS} ${LDADD}
clean:
rm -f ${OBJS} ${PROG} ${CLEANFILES}