Newer
Older
ubixos / src / tools / Makefile
@apwillia apwillia on 6 Jul 2002 827 bytes Fixed linux build problems
# $Id$
# Kernel Makefile (C) 2002 The UbixOS Project


#Compiler
GCC = gcc 
G++ = gcc

#Linker
LD = ld

#Kernel File Name
BINARY = format

#Delete Program
REMOVE = rm -f

#Objects
OBJS = format.o

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

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

format-dsk:
	(cp ../bin/init/init ./)
	(cp ../bin/shell/shell ./)
	(./format 101 init shell)
	(rm init)
	(rm shell)