#
# (C) Copyright 1992, ..., 2001 the "DOSEMU-Development-Team".
#
# for details see file COPYING in the DOSEMU distribution
#

CFILES=int10.c hlt.c
ALL=bios.S test.S $(CFILES)

OBJS= $(CFILES:.c=.o) bios.o
SUBDIR=bios

DEPENDS=$(CFILES:.c=.d)


IDIR=$(TOPDIR)/include

CFLAGS += -I$(TOPDIR)/env/video
export CFLAGS

# NOTE: currently we compile the following modules at other places:
#      int10.c in src/env/video
#
all: lib


#	NOTE: we force _whole_ generation of all tmp-files,
#	      because we came into trouble with make dependencies recently

bios.o: bios.S $(IDIR)/config.h $(IDIR)/macros86.h $(IDIR)/memory.h
	$(CC) $(CFLAGS) -nostdlib -Wl,-Ttext,0,-e,bios_f000 -Wa,-a -traditional $< -o $@.tmp > $*.s.out
	strip -N _edata -N __bss_start -N _end -N _etext -N blaBLA $@.tmp
	mv -f $@.tmp $@

bios:	bios.o

include $(REALTOPDIR)/src/Makefile.common

clean::
	rm -f *.o *.tmp *.s *.s.out

realclean:: clean


install: all
