From: Roy Marples Date: Thu, 18 May 2023 10:40:55 +0000 (+0100) Subject: build: Remove suffix prerequisite rules X-Git-Tag: v10.0.2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=838770a130f32d7aefd98655dadf0e76a4ddec43;p=thirdparty%2Fdhcpcd.git build: Remove suffix prerequisite rules Just to silence GNU make. This makes development slightly harder on BSDs, just have to do a `make clean` when changing configuration options. Fixes #197. --- diff --git a/hooks/Makefile b/hooks/Makefile index 7a0c3b1d..aee0255c 100644 --- a/hooks/Makefile +++ b/hooks/Makefile @@ -23,7 +23,7 @@ FILES+= ${EGHOOKSCRIPTS} .SUFFIXES: .in -.in: Makefile ${TOP}/config.mk +.in: ${SED} ${SED_RUNDIR} ${SED_DBDIR} ${SED_LIBDIR} ${SED_HOOKDIR} \ ${SED_SYS} ${SED_SCRIPT} ${SED_DATADIR} \ ${SED_SERVICEEXISTS} ${SED_SERVICECMD} ${SED_SERVICESTATUS} \ diff --git a/src/Makefile b/src/Makefile index 4849a77a..1e371145 100644 --- a/src/Makefile +++ b/src/Makefile @@ -38,7 +38,7 @@ CLEANFILES+= *.tar.xz .SUFFIXES: .in -.in: Makefile ${TOP}/config.mk +.in: ${SED} ${SED_RUNDIR} ${SED_DBDIR} ${SED_LIBDIR} ${SED_HOOKDIR} \ ${SED_SYS} ${SED_SCRIPT} ${SED_DATADIR} \ ${SED_SERVICEEXISTS} ${SED_SERVICECMD} ${SED_SERVICESTATUS} \ @@ -51,7 +51,7 @@ all: ${TOP}/config.h ${PROG} ${SCRIPTS} ${MAN5} ${MAN8} dev: cd dev && ${MAKE} -.c.o: Makefile ${TOP}/config.mk +.c.o: ${CC} ${CFLAGS} ${CPPFLAGS} -c $< -o $@ CLEANFILES+= dhcpcd-embedded.h dhcpcd-embedded.c diff --git a/src/dev/Makefile b/src/dev/Makefile index 7961149f..178a0c0b 100644 --- a/src/dev/Makefile +++ b/src/dev/Makefile @@ -20,7 +20,7 @@ CLEANFILES+= ${DSOBJ} ${DPLUGS} .c.So: ${CC} ${PICFLAG} -DPIC ${CPPFLAGS} ${CFLAGS} -c $< -o $@ -.So.so: ${DSOBJ} +.So.so: ${CC} ${LDFLAGS} -shared -Wl,-x -o $@ -Wl,-soname,$@ \ $< ${LIBS}