diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-04-06 13:39:51 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-04-06 13:39:51 +0200 |
commit | 9d1b0b33555da8c2587fc351f3e75c903c1fe9e2 (patch) | |
tree | a77e7d8008d8705af1f495b4dd6bc367494b17dd | |
parent | 6e9c221a95956431b13e1c6a830798bc2de24f90 (diff) |
Makefile: make it simpler to not compile compat objects
on OpenBSD: make COMPATOBJ=
-rw-r--r-- | Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -29,8 +29,6 @@ HDR = \ LIBUTIL = libutil.a LIBUTILSRC = \ - strlcat.c\ - strlcpy.c\ util.c LIBUTILOBJ = ${LIBUTILSRC:.c=.o} @@ -39,7 +37,14 @@ LIBXMLSRC = \ xml.c LIBXMLOBJ = ${LIBXMLSRC:.c=.o} -LIB = ${LIBUTIL} ${LIBXML} +COMPATSRC = \ + strlcat.c\ + strlcpy.c +COMPATOBJ =\ + strlcat.o\ + strlcpy.o + +LIB = ${LIBUTIL} ${LIBXML} ${COMPATOBJ} MAN1 = ${BIN:=.1}\ ${SCRIPTS:=.1} @@ -56,7 +61,7 @@ all: ${BIN} ${BIN}: ${LIB} ${@:=.o} -OBJ = ${SRC:.c=.o} ${LIBXMLOBJ} ${LIBUTILOBJ} +OBJ = ${SRC:.c=.o} ${LIBXMLOBJ} ${LIBUTILOBJ} ${COMPATOBJ} ${OBJ}: config.mk ${HDR} |