Add the ability to compile an ELF assembler on i386 if OBJECT_FMT == "ELF"

This commit is contained in:
christos 1999-01-11 10:55:21 +00:00
parent ae2cecd233
commit e3772ce299
2 changed files with 11 additions and 2 deletions

View File

@ -1,7 +1,12 @@
# $NetBSD: Makefile.inc,v 1.2 1998/06/26 20:47:08 tv Exp $
# $NetBSD: Makefile.inc,v 1.3 1999/01/11 10:55:21 christos Exp $
TARG_CPU_C= tc-i386.c
.if ${OBJECT_FORMAT} == "ELF"
OBJ_FORMAT_C= obj-elf.c
CPPFLAGS+=-DDEFAULT_ELF
.else
OBJ_FORMAT_C= obj-aout.c
.endif
ATOF_TARG_C= atof-ieee.c
CPPFLAGS+=-DBFD_ASSEMBLER=1

View File

@ -1 +1,5 @@
#include "obj-aout.h"
#ifdef DEFAULT_ELF
# include "obj-elf.h"
#else
# include "obj-aout.h"
#endif