]> git.armaanb.net Git - opendoas.git/commitdiff
Fix compatibility with GNU make
authorArmaan Bhojwani <me@armaanb.net>
Mon, 3 May 2021 23:40:18 +0000 (19:40 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 3 May 2021 23:40:18 +0000 (19:40 -0400)
In my attempts to make it compatible with bmake, I made it
incompatible with gmake.

Makefile

index 8b0f258ec81459919aedce143febd7eed2840e6d..b1494caa722facd98cc9df22a497991f59427ed9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,7 @@ OBJS := ${SRCS:.y=.c}
 OBJS := ${OBJS:.c=.o}
 
 ${PROG}: ${OBJS}
+       @[ -f ./libopenbsd/strlcat.o ] && mv libopenbsd/*.o . || true
        ${CC} ${CFLAGS} *.o -o $@ ${LDFLAGS} ${LDLIBS}
 
 install: ${PROG} ${MAN}