NetBSD/sbin/modload/Makefile
mrg 72a64c5437 add ELF support, mostly from joda@pdc.kth.se (Johan Danielsson) in PR#6149,
updated for the symtab support for a.out (non for ELF yet) and other cleanup
by myself.  should work on the alpha as well as other ELF ports...
remove the ld(1) output by default, rather than leaving little binary turds
across the filesystem...
1999-06-13 12:54:40 +00:00

18 lines
265 B
Makefile

# $NetBSD: Makefile,v 1.7 1999/06/13 12:54:40 mrg Exp $
WARNS= 1
PROG= modload
SRCS= modload.c
MAN= modload.8
.include <bsd.own.mk> # for OBJECT_FMT
.if (${OBJECT_FMT} == "ELF")
SRCS+= elf.c
.else
SRCS+= a.out.c
CFLAGS+=-DUSE_AOUT
.endif
.include <bsd.prog.mk>