# $Id$ # Kernel Makefile (C) 2002 The UbixOS Project # Include Global 'Source' Options include ../../Makefile.inc include ../Makefile.inc #Objects OBJS = null.o #Kernel Parts KPARTS = ../init/*.o ../sys/*.o ../vmm/*.o ../lib/*.o ../kernel/*.o ../isa/*.o ../vfs/*.o ../ubixfs/*.o ../pci/*.o ../sde/*.o ../devfs/*.o ../net/core/*.o ../net/net/*.o ../net/api/*.o ../net/netif/*.o ../mpi/*.o #../graphics/*.o ../ld/*.o -Ttext 0x30000 -Tdata 0x34000 # Link the kernel statically with fixed text+data address @1M $(KERNEL) : $(OBJS) $(LD) -nostdlib -nostdinc -o $@ $(OBJS) $(KPARTS) -Ttext 0x30000 /usr/bin/strip $@ # Compile the source files .cc.o: $(CXX) -Wall -O ${CFLAGS} $(INCLUDES) -c -o $@ $< .cc.s: $(CXX) -Wall -O ${CFLAGS} -O $(INCLUDES) -S -o $@ $< .c.o: $(CC) -Wall -O $(CFLAGS) $(INCLUDES) -c -o $@ $< .c.s: $(CC) -Wall -O $(INCLUDES) -S -o $@ $< .S.o: $(CC) -Wall $(CFLAGS) $(INCLUDES) -c -o $@ $< # Clean up the junk clean: $(REMOVE) $(OBJS) $(KERNEL) null.c