summaryrefslogtreecommitdiffstats
path: root/lib/libelf/Makefile
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2006-11-12 18:43:25 +0000
committerjkoshy <jkoshy@FreeBSD.org>2006-11-12 18:43:25 +0000
commit1d082af7afed3c22e0c947bb378e42b9fa2fe45d (patch)
treed9f3261ce69d2bc8ab8087870788256ee042a9cf /lib/libelf/Makefile
parent645d5f3a2dbe331e9ecb24a7cda9d589bdc8844c (diff)
downloadFreeBSD-src-1d082af7afed3c22e0c947bb378e42b9fa2fe45d.zip
FreeBSD-src-1d082af7afed3c22e0c947bb378e42b9fa2fe45d.tar.gz
- Replace the use of DPSRCS with something more appropriate. DPSRCS
is for when you need something in ".depend", but not compiled in. - Style fixes: Spell ${.OBJDIR} as ".". - Neaten a comment. Submitted by: ru
Diffstat (limited to 'lib/libelf/Makefile')
-rw-r--r--lib/libelf/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libelf/Makefile b/lib/libelf/Makefile
index 655e85f..06ea0b8 100644
--- a/lib/libelf/Makefile
+++ b/lib/libelf/Makefile
@@ -45,12 +45,13 @@ SRCS= elf_begin.c \
libelf_ehdr.c \
libelf_phdr.c \
libelf_shdr.c \
- libelf_xlate.c
+ libelf_xlate.c \
+ ${GENSRCS}
INCS= libelf.h gelf.h
-DPSRCS+= libelf_fsize.c libelf_msize.c libelf_convert.c
-CLEANFILES+= libelf_fsize.c libelf_msize.c libelf_convert.c
-CFLAGS+= -I${.OBJDIR} -I${.CURDIR}
+GENSRCS+= libelf_fsize.c libelf_msize.c libelf_convert.c
+CLEANFILES+= ${GENSRCS}
+CFLAGS+= -I. -I${.CURDIR}
OBJS+= libelf_convert.o libelf_fsize.o libelf_msize.o
@@ -160,7 +161,7 @@ libelf_msize.c: elf_types.m4 libelf_msize.m4
.include <bsd.lib.mk>
-# Keep the .suffixes line after the include of bsd.lib.mk
+# Keep the .SUFFIXES line after the include of bsd.lib.mk
.SUFFIXES: .m4 .c
.m4.c:
m4 -D SRCDIR=${.CURDIR} -D OSRELDATE=${OSRELDATE} ${.IMPSRC} > ${.TARGET}
OpenPOWER on IntegriCloud