From 06a0ab2d5f0619fcda45173d64d5c8f054ff8c47 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 11 Oct 1997 19:13:39 +0000 Subject: [PATCH] CFLAGS->CPPFLAGS, and general cleanup; add WARNS --- usr.bin/ldd/Makefile | 16 +++++++--------- usr.bin/ldd/ldd_elf/Makefile | 16 +++++++--------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/usr.bin/ldd/Makefile b/usr.bin/ldd/Makefile index d30965037b69..05466161949e 100644 --- a/usr.bin/ldd/Makefile +++ b/usr.bin/ldd/Makefile @@ -1,24 +1,22 @@ -# $NetBSD: Makefile,v 1.4 1997/05/08 21:11:41 gwr Exp $ +# $NetBSD: Makefile,v 1.5 1997/10/11 19:13:39 christos Exp $ +WARNS ?= 1 PROG= ldd SRCS= ldd.c \ xmalloc.c debug.c map_object.c load.c search.c headers.c paths.c NOMAN= .if (${MACHINE_ARCH} == "alpha") -CFLAGS+= -DELFSIZE=64 +CPPFLAGS+= -DELFSIZE=64 .else -CFLAGS+= -DELFSIZE=32 +CPPFLAGS+= -DELFSIZE=32 .endif -CFLAGS+= -Wall -I${.CURDIR}/../../libexec/ld.elf_so -CFLAGS+= -DLIBDIR=\"${LIBDIR}\" -#CFLAGS+= -DDEBUG - - +LDELFSO=${.CURDIR}/../../libexec/ld.elf_so +CPPFLAGS+= -I${LDELFSO} -DLIBDIR=\"${LIBDIR}\" # -DDEBUG +.PATH: ${LDELFSO} LDFLAGS+= -static -.PATH: ${.CURDIR}/../../libexec/ld.elf_so .include diff --git a/usr.bin/ldd/ldd_elf/Makefile b/usr.bin/ldd/ldd_elf/Makefile index d30965037b69..05466161949e 100644 --- a/usr.bin/ldd/ldd_elf/Makefile +++ b/usr.bin/ldd/ldd_elf/Makefile @@ -1,24 +1,22 @@ -# $NetBSD: Makefile,v 1.4 1997/05/08 21:11:41 gwr Exp $ +# $NetBSD: Makefile,v 1.5 1997/10/11 19:13:39 christos Exp $ +WARNS ?= 1 PROG= ldd SRCS= ldd.c \ xmalloc.c debug.c map_object.c load.c search.c headers.c paths.c NOMAN= .if (${MACHINE_ARCH} == "alpha") -CFLAGS+= -DELFSIZE=64 +CPPFLAGS+= -DELFSIZE=64 .else -CFLAGS+= -DELFSIZE=32 +CPPFLAGS+= -DELFSIZE=32 .endif -CFLAGS+= -Wall -I${.CURDIR}/../../libexec/ld.elf_so -CFLAGS+= -DLIBDIR=\"${LIBDIR}\" -#CFLAGS+= -DDEBUG - - +LDELFSO=${.CURDIR}/../../libexec/ld.elf_so +CPPFLAGS+= -I${LDELFSO} -DLIBDIR=\"${LIBDIR}\" # -DDEBUG +.PATH: ${LDELFSO} LDFLAGS+= -static -.PATH: ${.CURDIR}/../../libexec/ld.elf_so .include