head     1.1;
branch   1.1.1;
access   ;
symbols  start:1.1.1.1 halite:1.1.1;
locks    ; strict;
comment  @# @;


1.1
date     2002.09.23.13.50.34;  author halite;  state Exp;
branches 1.1.1.1;
next     ;

1.1.1.1
date     2002.09.23.13.50.34;  author halite;  state Exp;
branches ;
next     ;


desc
@@



1.1
log
@Initial revision
@
text
@#
# $Id: Makefile,v 1.1.1.1 2002/09/19 00:37:09 halite Exp $
#

CLEAN_FILES = Image bootsect setup tools/build
SYSTEM = $(TOPDIR)/toykernel

.PHONY: Image clean

Image : bootsect setup $(SYSTEM) tools/build
	tmp=_tmp_$$$$; \
	rm -f $$tmp; \
	$(OBJCOPY) $(SYSTEM) $$tmp; \
	tools/build bootsect setup $$tmp > $@@; \
	rm -f $$tmp

bootsect: bootsect.o
	$(LD) -Ttext 0x0 -s --oformat binary -o $@@ $<

bootsect.o: bootsect.s
	$(AS) -o $@@ $<

bootsect.s: bootsect.S
	$(CPP) $(CPPFLAGS) -traditional -o $@@ $<

setup: setup.o
	$(LD) -Ttext 0x0 -s --oformat binary -o $@@ $<

setup.o: setup.s
	$(AS) -o $@@ $<

setup.s: setup.S
	$(CPP) $(CPPFLAGS) -D__ASSEMBLY__ -traditional -o $@@ $<

tools/build: tools/build.c
	$(HOSTCC) $(HOSTCFLAGS) -o $@@ $<

clean:
	rm -f $(CLEAN_FILES)

dep:

include $(TOPDIR)/Rules.make
@


1.1.1.1
log
@toykernel
@
text
@@
