[devel] [PATCH 5/6] Makefile: use make variables instead of a hardcoded list
Alexey Gladkov
legion на altlinux.ru
Вт Окт 27 14:33:50 MSK 2020
Signed-off-by: Alexey Gladkov <gladkov.alexey на gmail.com>
---
Makefile | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index b2876fd..b46969f 100644
--- a/Makefile
+++ b/Makefile
@@ -99,19 +99,19 @@ test:
install: install_man install_exec
syslogd: syslogd.o pidfile.o
- ${CC} ${LDFLAGS} -o syslogd syslogd.o pidfile.o ${LIBS}
+ ${CC} ${LDFLAGS} -o $@ $^ ${LIBS}
klogd: klogd.o syslog.o pidfile.o
- ${CC} ${LDFLAGS} -o klogd klogd.o syslog.o pidfile.o ${LIBS}
+ ${CC} ${LDFLAGS} -o $@ $^ ${LIBS}
syslogd.o: syslogd.c version.h
- ${CC} ${SKFLAGS} ${SYSLOGD_FLAGS} $(DEB) -c syslogd.c
+ ${CC} ${SKFLAGS} ${SYSLOGD_FLAGS} $(DEB) -c $<
syslog.o: syslog.c
- ${CC} ${SKFLAGS} ${SYSLOG_FLAGS} -c syslog.c
+ ${CC} ${SKFLAGS} ${SYSLOG_FLAGS} -c $<
klogd.o: klogd.c klogd.h version.h
- ${CC} ${SKFLAGS} ${KLOGD_FLAGS} $(DEB) -c klogd.c
+ ${CC} ${SKFLAGS} ${KLOGD_FLAGS} $(DEB) -c $<
clean:
rm -f *.o *.log *~ *.orig
--
2.25.4
Подробная информация о списке рассылки Devel