1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
Description: Build libcommon.a in a parallel-safe way
Author: Santiago Vila <sanvila@debian.org>
Bug-Debian: https://bugs.debian.org/1118333
Last-Update: 2025-10-18
--- a/common/Makefile.in
+++ b/common/Makefile.in
@@ -81,22 +81,21 @@
$(TAGS):
endif
-$(COM_LIB): $(COM_LIB)($(COM_OBJS))
+$(COM_LIB): $(COM_OBJS)
+ $(AR) r $@ $(COM_OBJS)
$(RANLIB) $@
############################################################
-$(COM_LIB)(com-config.o): com-config.c $(COM_HDRS)
-$(COM_LIB)(com-debug.o): com-debug.c $(COM_HDRS)
-$(COM_LIB)(com-misc.o): com-misc.c $(COM_HDRS)
-$(COM_LIB)(com-socket.o): com-socket.c $(COM_HDRS)
-$(COM_LIB)(com-syslog.o): com-syslog.c $(COM_HDRS)
+com-config.o: com-config.c $(COM_HDRS)
+com-debug.o: com-debug.c $(COM_HDRS)
+com-misc.o: com-misc.c $(COM_HDRS)
+com-socket.o: com-socket.c $(COM_HDRS)
+com-syslog.o: com-syslog.c $(COM_HDRS)
-.c.a:
+.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -I. -I.. -c $<
- $(AR) r $@ $*.o
- $(RM) $*.o
############################################################
|