Newer
Older
ubix-32 / src / tools / Makefile
@reddawg reddawg on 8 Oct 2004 870 bytes More Typos :(
# Kernel Makefile (C) 2002 The UbixOS Project
#
# $Id$

# Include Global 'Source' Options
include ../Makefile.inc

CC=gcc

#Kernel File Name
BINARY = format

#Objects
OBJS = format.o

# Link the kernel statically with fixed text+data address @1M
$(BINARY) : $(OBJS)
	$(CC)  -o $@ $(OBJS)

# Compile the source files
.cc.o:
	$(CXX)  -Wall -fomit-frame-pointer -O -I../sys/include -c -o $@ $<
 
.cc.s:
	$(CXX)  -Wall -fomit-frame-pointer -O -I../sys/include -S -o $@ $<
 
.c.o:
	$(CC)  -Wall -O -c -o $@ $<
 
.c.s:
	$(CC)  -Wall -fomit-frame-pointer -O -I../sys/include -S -o $@ $<
 
.S.o:
	$(CC)  -Wall -fomit-frame-pointer -c -o $@ $<
 
# Clean up the junk
clean:
	$(REMOVE) $(OBJS) $(BINARY) *.core

format-dsk:
	(cp ../sys/compile/ubix.elf ./)
	(./format 50 2000 ${FD_DEVICE} ubix.elf 3754)
	#(./format 1064 2000 ${FD_DEVICE} shell 3754 clock 3754)
	(rm -fr ubix.elf)