clang compile fixes

This commit is contained in:
Ben Gras 2012-02-11 18:46:09 +01:00
parent f94e915e33
commit a73c217bf6
3 changed files with 16 additions and 0 deletions

View file

@ -3,7 +3,12 @@
PROG= cut PROG= cut
.if ${COMPILER_TYPE} != "gnu"
LDADD+= -lminixutil LDADD+= -lminixutil
DPADD+= ${LIBMINIXUTIL} DPADD+= ${LIBMINIXUTIL}
.else
LDADD+= -lutil
DPADD+= ${LIBUTIL}
.endif
.include <bsd.prog.mk> .include <bsd.prog.mk>

View file

@ -6,7 +6,12 @@
PROG= find PROG= find
SRCS= find.c function.c ls.c main.c misc.c operator.c option.c SRCS= find.c function.c ls.c main.c misc.c operator.c option.c
.if ${COMPILER_TYPE} != "gnu"
LDADD+=-lminixutil LDADD+=-lminixutil
DPADD+=${LIBMINIXUTIL} DPADD+=${LIBMINIXUTIL}
.else
LDADD+= -lutil
DPADD+= ${LIBUTIL}
.endif
.include <bsd.prog.mk> .include <bsd.prog.mk>

View file

@ -6,8 +6,14 @@ SRCS= conv.c display.c hexdump.c hexsyntax.c odsyntax.c parse.c
MAN= hexdump.1 #od.1 MAN= hexdump.1 #od.1
.ifndef HOSTPROG .ifndef HOSTPROG
.if ${COMPILER_TYPE} != "gnu"
LDADD+=-lminixutil LDADD+=-lminixutil
DPADD+=${LIBMINIXUTIL} DPADD+=${LIBMINIXUTIL}
.else
LDADD+= -lutil
DPADD+= ${LIBUTIL}
.endif
#LINKS= ${BINDIR}/hexdump ${BINDIR}/od #LINKS= ${BINDIR}/hexdump ${BINDIR}/od
.endif .endif