"Fossies" - the Fresh Open Source Software Archive

Member "dhcpcd-9.4.1/src/dev/Makefile" (22 Oct 2021, 789 Bytes) of package /linux/misc/dhcpcd-9.4.1.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile": 9.4.0_vs_9.4.1.

    1 TOP=	../../
    2 include ${TOP}/Makefile.inc
    3 include ${TOP}/config.mk
    4 
    5 CFLAGS?=	-O2
    6 CSTD?=		c99
    7 CFLAGS+=	-std=${CSTD}
    8 CPPFLAGS+=	-I${TOP} -I${TOP}/src
    9 
   10 DEVDIR=		${LIBDIR}/dhcpcd/dev
   11 DSRC=		${DEV_PLUGINS:=.c}
   12 DOBJ=		${DSRC:.c=.o}
   13 DSOBJ=		${DOBJ:.o=.So}
   14 DPLUGS=		${DEV_PLUGINS:=.so}
   15 
   16 CLEANFILES+=	${DSOBJ} ${DPLUGS}
   17 
   18 .SUFFIXES:	.So .so
   19 
   20 .c.So:
   21 	${CC} ${PICFLAG} -DPIC ${CPPFLAGS} ${CFLAGS} -c $< -o $@
   22 
   23 .So.so: ${DSOBJ}
   24 	${CC} ${LDFLAGS} -shared -Wl,-x -o $@ -Wl,-soname,$@ \
   25 	    $< ${LIBS}
   26 
   27 all: ${DPLUGS}
   28 
   29 udev.So:
   30 CFLAGS+=	${LIBUDEV_CFLAGS}
   31 CPPFLAGS+=	${LIBUDEV_CPPFLAGS}
   32 
   33 udev.so:
   34 LIBS+=		${LIBUDEV_LIBS}
   35 
   36 proginstall: ${DPLUGS}
   37 	${INSTALL} -d ${DESTDIR}${DEVDIR}
   38 	${INSTALL} -m ${BINMODE} ${PROG} ${DPLUGS} ${DESTDIR}${DEVDIR}
   39 
   40 eginstall:
   41 
   42 install: proginstall
   43 
   44 clean:
   45 	rm -f ${CLEANFILES}