openrc/src/prog.mk

20 lines
340 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: depend ${PROG}
${PROG}: ${SCRIPTS} ${OBJS}
2008-01-07 15:09:44 +05:30
${CC} ${CFLAGS} ${LDFLAGS} ${PROGLDFLAGS} -o $@ ${OBJS} ${LDADD}
2008-01-09 17:14:43 +05:30
clean:
rm -f ${OBJS} ${PROG} ${CLEANFILES}
2008-01-09 17:14:43 +05:30
include ${TOPDIR}/depend.mk