# Kernel Makefile (C) 2002-2004 The UbixOS Project # # $Id$ # Include Global 'Source' Options include ../../Makefile.inc include ../Makefile.inc #Objects OBJS = null.o #Kernel Parts KPARTS = ../isa/*.o ../mpi/*.o ../kernel/*.o ../vmm/*.o ../lib/*.o ../sys/*.o ../init/*.o # Link the kernel statically with fixed text+data address @1M $(KERNEL) : $(OBJS) $(LD) -T ./ldscript.i386 -o $@ $(OBJS) $(KPARTS) #/usr/bin/strip $@ # Compile the source files .cc.o: $(CXX) -${CFLAGS} $(INCLUDES) -c -o $@ $< .cc.s: $(CXX) ${CFLAGS} $(INCLUDES) -S -o $@ $< .c.o: $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $< .c.s: $(CC) $(CFLAGS) $(INCLUDES) -S -o $@ $< .S.o: $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $< # Clean up the junk clean: $(REMOVE) $(OBJS) $(KERNEL) null.c