# $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) *.core format-dsk: (cp ../sys/compile/ubix.elf ./) (cp ../bin/init/init ./) (cp ../bin/shell/shell ./) (cp ../bin/test/test ./) (cp ../bin/ls/ls ./) (cp ../bin/pwd/pwd ./) (cp ../bin/login/login ./) (cp ../bin/cat/cat ./) (cp ../lib/libc/libc.so ./) (./format 50 2000 ubix.elf init shell test ls userdb login cat libc.so pwd) (rm ubix.elf) (rm init) (rm shell) (rm test) (rm ls) (rm pwd) (rm cat) (rm login) (rm libc.so)